IIRC farming is notoriously underpaid, but I believe you are right about the rest.
And then there's growing things and selling them, which is usually very profitable, and lands you all kinds of government subsidies, depending on where you are and what you're growing.
I have two degrees in IT-related fields, and I'm fascinated by modern farming. If you're not familiar, I recommend checking it out.