Why Some Schools Have More Underqualified Teachers Than Others