Most e-bikes have a removable battery pack which you can then lug upstairs; a lot more convenient than dragging the entire bike up there.
VanMoof is a dutch company, where bikes are popular even out in the sticks (where garages are common). There are also bike charging stations, but they certainly aren't standard in the bigger cities, which does make it a bizarre choice to make the pack non-removable.
Note that a battery pack, if it is removable, needs a locking system and a bunch of extra material in order to allow the battery pack to not be (easily) stolen and for the system to survive the wear and tear of having it removed so often. Presumably by making the pack non-removable except for servicing, it saves weight and volume.
That makes it impractical for many places, unfortunately :(
I live on the top floor of an apartment building, and it is annoying to bring the bike up every time it needs to charge, so I bought this large power bank: https://www.amazon.com/SUAOKI-Generators-Portable-Generator-...
I just bring that thing down to the bike parking area when I take out the trash, and charge the bike from that. It holds enough power to fill the bike.
It does add a few hundred to the cost, making it even more expensive. OTOH though I live in the city and use the ebike instead of a car, so I could probably buy a new ebike every year and still save money.