Because his marriage was based on a lie when he cheated with Miranda, the fact that he is getting his comeuppance is what people find amusing. Bottom line is they are both assholes for betraying their vows, it isn't that hard to simply divorce nowadays if you want to be with someone else.