"I am sorry" in my opinion means "I am feeling pitiful, please forgive me".
But i can also use it in the opposite way.
For exemple if i say "I'm sorry you don't like what I'm doing", this means "I don't care you don't like what I'm doing" or "I am not sorry at all".
Barta