The average salary of teachers differ tremendously between different states. So at the very least the fact that the statistics the OP mentions says nothing about state specific salaries for teachers it does call into question the validity of the statistics.
In New York which is generally consider one of the best states to be a teacher in statistics are in the line of...
Giving an annual average salary $69,118
If you compare that with one of the worst states to be a teacher in Arizona you get salary statistic more in line of...
For an average of less than $47 000 a year.
Seeing as the average College Board in the US gives a rough estimate of education costs.
$16,325 (community college)
$23,410 (in-state students at a four-year public college)
$37,229 (out-of-state students at a four-year public college)
$46,272 (private non-profit four-year college)
You are talking about anywhere between $60 000 and $180 000 worth of expenses for a general four year program. If you for arguments sake say you go to a premier university You will be laden with lets $ 180 000 worth of debt.
If you work for forty years that would give a lifetime salary of 2.115 million dollars in Arizona and 3,105 million dollars in New York. Which is actually a fair bit different than the what the OP's source claims.