Paying for public toilets isn't unusual. You can pay or watch an ad.
In the US they fell out of favor during the 1970s because it was argued that they discriminate against women, as men could use urinals for free.
In the event of being challenged by a security chap, it is traditional to offer to piss on the station concourse instead.