It appears that he did it to surpass Butch in Cobblepot's hierarchy, but it wasn't completely clear that he had a motive other than to help Oswald. It seems they just set it up this way for Butch to try to "take down" Nygma so he can be Oswald's #2 again.