Well the dictionary definition is express regret for something that one has done wrong. "I must apologize for disturbing you like this" However I’d say that apologizing is more of a promise to not repeat your mistake. A good other term for this is repent, or ask forgiveness