As someone else said, this is more etiquette than language, but to throw in my two cents:
There are occasions where an apology of this sort could be sincere. You might say something that you meant innocently but that the other person misinterpreted. (Like, I recall once someone brought some donuts into work and I made a joking comment to the effect that eating these could make you get fat, I forget the exact words. A woman present thought I meant that she was fat from eating too many donuts. No matter how many times I tried to explain, she disliked me for the rest of my life.) Under such circumstances, it is common to say, "I'm sorry if it came out that way" or "I'm sorry if you misunderstood what I meant". In such an apology you are denying that you intended to offend, but sincerely apologizing that your poor choice of words or tone led to a misinterpretation.
That said, very often people do something stupid, unethical, or immoral, and then try to evade responsibility with a non-apology. Like someone is caught stealing and says, "I'm sorry if my actions were misinterpreted," when of course his problemm is that people interpreted his actions exactly correctly. Or pretty often politicians make an insulting comment about a person or group in what they think is a private conversation, but they are overheard or someone present tells others about the comment, and they make these non-apologies. Like I don't know how many times I've heard a politician say something like, "Wow, Ruritanians are stupid and ugly". Then he finds out that the microphone was still on and everyone heard what he said, and so he comes out with a statement like, "I'm sorry if my comments were misinterpreted. I have great respect for Ruritanians. What I meant to say was that Ruritanians are 'solid and happy', but I had a slip of the tongue."
I remember when I was a kid, there was a regular routine we'd go through where one could would insult another, like say, "You're stupid!" Then his mother or the teacher would say, "Billy! That's terrible. Say you're sorry." And Billy would say, "Oh, okay. Joe, I'm sorry that you're stupid."
Lately it's become popular among American politicians to "apologize" for racist actions committed by their ancestors. I don't see how this is an apology at all. The whole idea of an apology is that you are humbling yourself and confessing to your faults. Apologizing for something that someone else did, where you make clear that you totally condemn their actions and that you would never have done anything of the kind, isn't an "apology" at all. It's the exact opposite of an apology. You're not humbling yourself. Quite the contrary, your whole purpose is to make it absolutely clear that you are morally superior to the people who did these things. You're bragging, not apologizing.