This stuff happens a lot. Celebrities don't make money through a business front nor do they get to class it as capital gains. It's all "income", so the incentive to turn it into a cheaper tax category or hide it offshore is huge.
See also the Glasgow Rangers collapse due to tax fraud.
You want to spend your money however you like? That's income. "They can't play tax tricks to avoid income tax" is the system working, not a bug
One must remember that (cross-border) tax law is highly ambiguous. Since you can arrange your own affairs in the most tax efficient way, everyone always tries to get a beneficial outcome. If you add an international component to that, you'll quickly end up in situations where there often is no clear right or wrong answer because tax systems don't look at certain things in the same way.
Spain isn't the best place to live if you have money, in particular due to the wealth tax.
Neither of these guys are filling out their own taxes.
Why did their accountants think it was a good idea to complete their taxes in a way that wound up getting them in trouble?
Or why did Spain think these guys were alluring targets to spend finite prosecutorial resources on?