The state ranks low in teacher pay, but that's just part of the problem.