While I don't like his politics, I am a proponent of Frank Luntz's "It's not what you say, it's what they hear."
I agree, on the surface my intent (from my POV) was not to offend. That said, I can see how my word / idea choice could have been better.
The apology is to acknowledge that yes I could have done better and then even if I didn't mean to offend the receiver's does still have value. Human to human, I wanted to acknowledge that.
Perhaps not very HN but I'm comfortable with that ;)