There's a good answer: It's to protect you. Electricity and water don't mix. If a light switch is functional, it's connected to a live wire. In new buildings with professional electrical installation, there's a pretty low chance a light switch would shock you.