Game development is full of exploitative companies looking to squeeze whatever effort they can from passionate young people. When you're young and inexperienced it's best to avoid those companies as best you can; the experience you'll gain will be less desirable than at a company that treats you well and presents you with opportunities for long term growth.
That said, as an older programmer I would not expect to ever earn anywhere near your earning potential for the skills you'll gain, if you were to work outside of gaming. It doesn't matter that you might single-handedly build the infrastructure to host millions in MAU on a shoestring budget; the profit margins are razor thin, if there's any profit at all, and the wages reflect that.
Your customers don't want to pay you, investors don't want to buy in, the media dislikes you by default, and your industry is saturated with competition.
All that said, I have worked outside of gaming and still keep coming back to it. I've taken substantial pay cuts, leaving good jobs of my own volition, to return on several occasions. I do it because I've never experienced so much _freedom_ as I do as a game developer. If there's something I want to try, build or learn then I generally start on that _immediately_. Nowhere else have I felt so able to express myself and better myself.
* Addendum: YMMV. I've worked mostly in small studios, on Indie titles and subcontracting on AAA titles. I imagine things are different at very large studios.