Sorry for poorly describing what I mean..
Person 1: I’m sincerely sorry for hurting you.
Person 2: you’re sincerely sorry for getting caught.
Is there a name for that and what is it called?