This happens via capacitive coupling when you have an un-energized wire running next to an energized one and connect a high-impedance voltmeter. In your case, it would be from the switched wire running next to the hot wire.
How can earthing problems be corrected?
How to Fix Electrical Wiring in the Home With Electrical Ground…
- Shut off the main electrical power.
- Find the grounding rod driven into the ground. …
- Check the ground connection clamp. …
- Check the ground wire running to the copper or galvanized water service inside the house.