Saying you're sorry is called apologizing.
When you apologize, you're
telling someone that you're sorry for the hurt you caused, even if you
didn't do it on purpose. People who are apologizing might also say that
they will try to do better. They might promise to fix or replace what
was broken or take back a mean thing they said. And even apologizing can not fix or replace it, it still apologize.