For me personally charging and keeping e-bike batteries in the apartment is a source of stress. I do keep and charge my drone and FPV plane batteries at home, even DIY ones, but e-bike batteries are much bigger and harder to chuck out of the window in case something goes wrong. I actually got rid of my e-scooter because of that, I just didn’t trust it.
That is a very reasonable concern. My apartment has 8 sprinklers so I park my e-bike right beneath one. You can get a e-bike with a removable battery and store it in a fireproof box