It's as convenient as a pro-Zionist anti-Sahrawi Morrocco essentially letting migrants into Spain en masse, and falsely telling them they'd get temporary status if they'd step foot into there - they've done this for a while
As of now, the only reasons I could think of them doing that is they're pressuring them on foreign policy, with Israel facing off Palestine's muquwama and a bit of Iran and its Axis of Resistance, and Spain having had meet-ups with Algeria, who hosts and supports Polisario and the Sahrawi liberation movement