In most places, teachers will top out at $70-80k if they stay teachers and don't move into administration, which is consistent with what that accounting grad would make in the payroll or HR department of a company. Note that at that point, the benefits become even more significant. Teachers often have healthcare plans that cover their family members, where they pay a lower portion of premiums, etc. They get large pension contributions and often get healthcare benefits in retirement, which is rare in the private sector.
Math/pure science majors aren't worth anything. There is a huge oversupply of people with say biology or chemistry degrees. In the private sector, a biology major is lucky to start at $35k/year.
Obviously you can dramatically increase your salary by acquiring programming skills and going into software development, but that's not unique to teachers. Programmers make way more than pretty much every other field you'd find yourself in after getting a non-engineering bachelors degree, except maybe economics.