Except Moose was declining to prosecute Burisma because he was wanted bribe
The firing made it more likely a non-corrupt prosecutor would be hired, and prosecute Burisma for the crimes it committed prior to Hunter joining the company. Joe's actions hurt Burisma.