@kint Maybe they do not have business entity in Spain, so they can’t send you money there? Probably they are willing to save some money on taxes too.
I think if you are located in UK then legally you can’t get paid in Spain. This might be a reason too.
Maybe this new company can pay you in UK...