You may not realize this as a native speaker, but English can sometimes be very confusing. Turns out that “I’m sorry” and “I apologize” does not mean the same thing.

I thought "I'm sorry" and "I apologize" mean the same thing. Not at a funeral!