Bad comparison.
Public sanitation workers keep our society functioning, they're a cornerstone of civilization.
Online prostitution, on the other hand, ranges from providing 0 value, to extreme negative consequences, such as the current porn addiction epidemic, or the loneliness epidemic.