Usually this form is evasive and potentially dishonest, a weasely way to avoid taking responsibility. It might be useful In a fiction piece... a telegraph that that speaker has more culpability than they are willing to admit. In personal discourse it belongs with non-apology apologies like "I'm sorry if my words offended anybody". Either the words were offensive and an apology is owed, or they weren't.