Michael regrets revealing that Stanley is having an affair, so he spreads a bunch of lies about everyone else to cover his tracks--except that one of the lies that he spread actually turns out to be true.
Michael learns that Stanley is cheating on his wife and tells everyone in the office. After realizing what he has done, Michael makes up fake stories about all the employees so everyone will think that the Stanley story is just a rumor.