Hello,
I hope you are having a great day
When You apologize you are offering the other person
to forgive you for something mean or hurtful you may have done/said either on purpose or accident . They have the right to forgive you or not .
Because it is what you have done that has made them sad/angry .
Hope This Helps :)
-Sprinkles