Why not? If the increase in cake size is bigger than the subsidies then it can be a net win, even for the people paying the subsidies.
It also ignores the fact that absent the EU, countries would still have a lot of subsidies.