Lady Shay was angry at her slave and she did not want him to continue messing with her. She chose to fart and make him smell it. That was both a punishment and also a way to express her anger. The alternative was to beat him up and he did not want that. So he smelled the farts and knew he did not have any room for further mistakes so he changed.