Many cheeses are noted for their very strong smell and cutting such cheeses clearly releases that smell into the immediate atmosphere. I've no doubt that that is the reason the idiom 'cut the cheese' has come to mean "release intestinal gases", since that has precisely the same effect!