The joke is that the Wife doesn't want the maid to be screwing her husband, thats why shes going to pay her.
But the maid is probably lying, thats why its ironic haha.
..nooo. wroooooong. The wife finds out that the maid is banging the neighbor, so is she. She infers that she is being blackmailed by the maid, so she gives her a raise.