Chalk it up as a lesson learned breh
Attendance is something that a boss can easily quantify at a job and as such it's sort of an easy baseline to set for evaluating an employee
I once got fired from Macys when I was in school for being late, and people who were literally STEALING from the job kept their jobs
And like you i wasn't even late that much. Can't call it. Dude who fired me graduated from the college I was in at the time and he tried to tell me to apply to jobs on campus , I looked at bol like

Anyway that was a blessing in disguise anyway as my next job was for more money at a prestigious institution and i had way more autonomy (could show up and leave whenever i wanted)