“While prostitution is legal in Switzerland, sex workers have to pay a tax of five Swiss francs (£3.50) each night that they work.” – Report from the UK Telegraph.
That’s a tax base that’s easy to measure: no tracing payment, no counting customers. In exchange for about $5, the prostitutes get a measure of safety.