Yeah this is crazy to me too. I don't work in software, I teach engineering at a local tech institute and I make like 55k Canadian. I'm fairly autonomous in that as long as I fulfill my class hours and workload I'm free to work from home and all that. I have a great work life balance and I love it but the pay is abysmally if I want to start a family in the future and save for retirement.
I've started getting into software development in my free time and planning for a career change but I feel as if I'd be trading my free time for more money. And if there's a kid on the way, what's more valuable to get from your dad? A dad that makes lots of money but isn't around much or a fad that is around a bunch but can't support you as well? Maybe real life isn't so cut and dry and I can find a happy medium between the two in software. Any advice?