Does it go off after a delay? Bathroom lights are often wired with an extraction fan which is deliberately set to stay on for a bit longer once the circuit is broken. Perhaps it is set up like this. If you�re worried, ask an electrician to check. Electricity and bathrooms are not to be messed with�.