You need to say sorry if you heart someone feeling like if you hit someone.You need to say sorry when you have done something wrong.
This can be difficult if you didn’t by mistake as you feel you have’t done anything wrong like you pushed someone on the floor.