In the case of an acoustic guitar, the fart's sound waves would bounce off the inside of the guitar's body and be amplified. The resonance of the guitar would also amplify the sound of the fart. This could create a very unpleasant and embarrassing situation for the person who farted.
In addition, the moisture in a fart could damage the guitar's finish. So, it's best to avoid farting in an acoustic guitar.