There are a couple of really good answers already; I think the OPs approach and Carrie Kendall's in particular do a nice job of addressing this particular situation, and how to approach comments in general, respectively.
But I think the answers here are split between two very different questions:
"Should I apologize" is not the same thing as "Did I do something bad?"
Apologizing is often way to express empathy, not necessarily an admission of guilt.
I'd bucket things you might apologize for into three categories:
- I was bad. A bad action you knew was bad at the time. (Stealing something you don't need.)
- I didn't mean to be bad, but apparently was. An action that you don't know is societally unacceptable, but most others in the community do. (Showing the soles of your feet to someone in much of the middle east as a westerner, or calling an Asian person "oriental" in the US, say)
- Someone is acting like I was bad, but it's confusing to me and most others. This is when someone appears to many to be overreacting. An action that most people wouldn't find problematic or hurtful, but is hurtful to someone in a given situation.
A lot of life's little social conflicts fall between #2 and #3. I'll come back to where I personally think this one lives in a sec. First:
When should you apologize?
If you care about doing the right thing, you have to apologize for...
- Bad and knew it. Because you owe it - you know what you did wrong, and should own it.
- Bad by local standards, but didn't know it. Because you now know that you did something that caused a harm predictable to most, and you'll likely adjust to prevent in the future. But there's no soul searching to do - it wasn't your fault. It's literally "I'm sorry; I meant no offense, but now know how I caused it."
- Seems like an overreaction. Well, here's the tricky one. You don't really owe an apology, but that's not the key question. The key question is whether it will help. And much of the time, it will, and can do so without it costing anything:
"It seems clear that my wording offended you. Please accept my apology - that was truly not my intent."
Note that it does all of the helpful things an apology is good for, with no real costs:
- It's honest
- It respects that you care about the other person's experience, whether you can relate to it or not
- It doesn't make it seem like you and the whole community have to adjust to some new level of eggshell-walking
- It doesn't make the apologizing-for-what-s-wrong-with-you mistake ("I'm sorry you felt that weird way")
Did you do something really bad in this case?
No. Not really, but your probably could do a little better, in predictable ways, which your answer already addresses. I'd mostly put this in category 3 - the reaction you got was, IMO, much stronger than most people would expect from your comments. But it has a little bit of category 2:
While I wouldn't call it "insulting," it's not shocking the OP had a negative reaction to me because it's dismissive. Their question is how to make a thing that they are obviously thinking about work better, and your response sort of implies that thinking or caring about such things at all is a frivolous waste.
To be clear, I think the OP meant no offense, and found their response (linked above) appropriate. But in a case when someone finds a somewhat dismissive comment hurtful, my advice?
Tell them you're sorry, and that wasn't your intent. It helps a lot, and costs roughly nothing.