Here's a scenario: you took a nice long hot bath. It got dark outside. You get out and want to turn on the light. Do you want to open the door and let the cold air in? Do you need to cover yourself first?
Crack the door open, reach through and flip the switch. It's only going to be momentarily cold and if covering is required a quick wrap of the towel will suffice.
I've been in a multi-stall public bathroom where a person leaving turned off all the lights. For private bathrooms, I would much prefer to have the light control fully within my control while I am inside the bathroom.
Seriously I’ve never had a problem with the switch being inside or outside as long as it’s by the door