In education circles, they refer to it as “passing the trash.”
It’s unprofessional. Plenty of people, perhaps you, would describe it as unethical. It ought to be illegal.
A misbehaving teacher shouldn’t be able to resign from — and dodge penalties in — one school district only to re-emerge in a Pennsylvania classroom elsewhere, perhaps to repeat the offense, with no notification of the past dirty deeds provided to the new employer.