Just about everyone has said or done something that hurts another person's feelings. Sometimes you might hurt someone without meaning to. Or you say or do something unkind and regret it later.
When you realize you've broken someone's trust in you or hurt them with your words or actions, it's a good idea to apologize.