They were enemies back then. Now they are on the same side. And they aren't specifically helping Mayuri. They are just helping the shinigami and SS. And since Ichigo is 50% shinigami, himself, I don't think it really needs elaborations why he's doing it.