Let's not pretend that Spain of all places is caring about horribly destructive psuedo-gambling.
Banning "unregulated gambling" is just pressure to make sure that the Spanish gambling racket stays intact for the bookies already at the top.
Is this intended to imply that Spain has particularly high levels of sports betting, or issues with gambling? All the stats I can see suggest the opposite, and there's already plenty of tight restrictions on local gambling businesses (sports sponsorship ban, welcome bonus ban, almost no public advertising, etc). At a quick google, it looks like the 'Spanish gambling racket' for sports is tiny, gambling problem stats far lower than UK/France/Italy, and most gambling that does happen is the lotteries etc instead, which has its sins, but is a very different beast.
Is there something specific you're getting at?