You are assuming that most grad students aim to be a professor, you have any data to back it up? Since that has not been my experience at all.
At best, you'll get a scholarship and maybe a teaching salary/stipend of ~30k over 5-6 years. In my experience, people who can do a PhD could've been making 2-3x that much in industry.
PhDs do get hired at a higher position, but you can easily get there the normal way over 5 years. IMO a lot of grad school students are just here to immigrate.