Geographically, they're not. Ceuta occupies a tiny corner of Africa. None of these people reached peninsular Spain and they are not migrants fleeing into Europe to live there.
Crossing a breakwater and going home 30 minutes later does not make them legal EU immigrants. It was an overblown news story that only have been believed by someone who has never been to the region, like so much news today!
Where did you hear that? Ceuta is entirely surrounded by Morocco and all of the people who moved into Spanish territory in Africa for 30 minutes did so by coming from Morocco. The confusion surrounding the geography there is... confusing!