It's a natural, involuntary function like sneezing or yawning. So why can I sneeze or yawn in a room full of people and no one thinks anything of it and in some cases people will issue you a blessing from God, but to let one rip is looked down upon. No one has yet to say "God bless you" to me for a well timed fart.
And what is the correct signal to make for a fart? If a yawn I cover my mouth with my hand. If a cough, I cough into my fist. A sneeze requires a Kleenex.
What's the polite thing to do while farting?