The surgeon will have spent many years studying while the street cleaner can just get started tomorrow.
The surgeon has responsibilities the cleaner does not.
Finally, given equal pay, people may not want to do unpleasant jobs: I'd rather be a poet than a trash collector.
But on the other hand it's somewhat hard to justify someone earning many orders of magnitude more than others.