Naming your own behavior versus blaming their reaction.
"I am sorry I yelled" takes responsibility. "I am sorry you got so upset" hands the fault back to the child and teaches them that their feelings were the problem. Same opening word, opposite message.