It doesn't need to be outside the bathroom. Is it a pullcord or standard wall mounted switch?
Edit: but there are requirements regarding the location of switches in a bathroom..Look up Bathroom Zones
what is the regulation about the shower switch? should it be outside the bathroom?