I got written up for being two minutes late but my manager regularly shows up thirty minutes late and nobody says anything.
More people experience this than they realize.
You got written up for being barely late while your manager breaks the same rule freely.
If this sounds familiar, the Library can help you find the bigger picture.