There are times when the pilots are expecting turbulence, when they are notified by ATC or other planes ahead of them. During that time, the light means passengers shouldn't use the lavatories.
The market is mature enough to have standards for charging, but is nowhere near being mature for battery swaps. The charging problem will be solved long before battery swaps get close to being a thing, especially with the recent convergence on NACS.