That's the right way. At the same time if we have public toilets we should have people who clean and maintain them.
Let's say all people have the same income, same availability of goods etc. Would you prefer this job or something else? What about the other guy? What if nobody wants to do this?