I think this "IT people hate their jobs" thing is overblown.
Right, I don't think IT would have gotten to where it is if everyone hated it so much.
There's a practical explanation for this fact:
Most of the advances in computer science and most of the code developed in industry is by relatively young, enthusiastic and prolific developers and researchers.
95%-99% of IT is repetitious factory work. 1% to 5% is truly creative or original. The repetitious factory work stands on the shoulders of the original platform work and original coding.
In short, a
very few individuals in this industry get to do truly unique, vital work that truly matters, such as the invention of new languages that receive wide acceptance, the development of core OS code, or the development of really great application software.
And usually, those individuals only get to do this type of work for a few years of their early careers. There's a standard in this industry that (more or less) says that you shot your wad by the time you're 35 and you should get out of the way and let the new kool kids do their thing.
Everyone else and those at other points in their careers are doing: management (quasi or real), bug fixes and maintenance, QA, refactoring of old dreck, "requirements gathering" (BOR-ING but necessary - I suppose it's like taking the trash out, someone has to do it, and sorry

), and all of the other pipe fitting and plumbing work required in IT.
IT *isn't* computer science anyway and we've discussed that distinction in the past. Information Technology is the application of known art and science. IT is wiring networks, and doing admin tasks on OSs, tending to workstation issues, etc.
Real computer science research requires a PhD. High end application development in novel areas probably requires a master's degree, or a few years of really good experience. "IT" is what everyone else of lesser credentials (2 year degrees or tech school certificates) is doing. As well as those of us who fell from grace and aged and are not deserving of the high honor of writing new code any more.
Most IT work is drudgery. Nothing the matter with it but it's repetitious and it can be taught.