I'm not particularly passionate about welding, whereas I derive real pleasure from programming. For myself this enjoyment is sufficiently valuable to more than offset the economic loss. YMMV.
Sure - the fun of programming (or the relative comfort of a desk job) is a benefit of the job. That's why you're not necessarily underpaid just because a welder can earn more.