Suing for peace would require massive losses for the Spanish, even though actual Moroccan landings in Spain are impossible (... aren't they? )
The Spanish could potentially do real damage to Morocco; what could a post-war Morocco look like?