Farts are pretty disgusting, I never find them funny, and am often quite sickened by them.
But yep, they're natural and everyone does them, so long as you at least make an attempt not to spew a revolting stench at people who are trapped with you - try to leave the room etc (even better go outside as in this case tbh) and don't expect them to find it funny - and of course excuse yourself - nobody should get upset.
I fart plenty, due to bowel issues, try to do so away from others and if I can't manage that I always excuse myself.
Never heard my mum fart, though of course I'm sure she did. Would have been so embarrassed by this as a teenager. Used to completely disgust me when my father would cock his leg like a dog and not excuse himself. That's probably why I never find them funny tbh, his entitled behaviour, no concern for others coupled by a repulsive stench.
Perhaps your husband overreacted as obviously you couldn't help it, though you should have excused yourself and not expected them to find it amusing. If you didn't excuse yourself and immediately downplayed their natural revulsion, perhaps they were reacting to that.
Anyway, do be aware, although some would laugh, a lot of people do not find stinking or loud farts remotely funny and would be very embarrassed by this - and their opinions are equally valid to yours.