Modern lithium batteries or solar panels for that matter don’t get magiced out of nothing.
Those materials are mined also. At least forethought is given to handling/disposal for nuclear since it’s a known issue.