They were there for the fun of looting and harassing the Spanish at the direction of their government, not to actually settle. I might call them agitators, raiders or invaders, not migrants.
Morocco, being close to Spain, is a well-known hub for migrants from all over Africa hoping to make it to Europe, yes.
Do you also believe that all the migrants attempting to cross the Channel from Calais are… French?