Here is an analysis of why this specific narrative formula works so well in popular media, how writers structure these stories, and the psychological appeal behind the "attitude adjustment" theme. The Anatomy of the Trope

And with that, Lexi's world began to shift in ways she never could have imagined. The creepy janitor had set his sights on her, and she was about to learn a lesson she would never forget.

Tiffany believed that rules were suggestions for other people. She would purposefully drop her lunch tray in the cafeteria, leaving a chaotic mess of mozzarella sticks and soda, just to watch Mr. Silas arrive to clean it up. She would scoff when he asked her to move her designer bag from the hallway floor. To Tiffany, Silas wasn’t a person; he was a background fixture, a part of the school's plumbing.