For what little it's worth, two members of my extended family are plumbers and both do it because they genuinely enjoy it. Both are also self-employed, so there's that. I worked with one of them in my early 20s and "dirty" jobs like that aren't half as unappealing as they seem. The truth is, any kind of basic service like that actually ends up being very social work. People are generally happy to have someone who can come and solve real problems and you tend to develop meaningful relationships with the people that you do work for. I wouldn't call it an objectively worse gig than the contract development I do nowadays, aside from the fact that it paid drastically less.
That said, if this actually is a problem then it's one you can solve by paying people more. We skate by right now because the need to work just to survive acts as a kind of economic coercion that tips the balance of power drastically against labor, which in turn allows abusive employers to pay people less than they would have to in a "balanced" labor market. Remove that coercion and people will still do otherwise undesirable jobs if you pay them enough.