Swirl marks are inevitable when you are working with an orbital sander.
However, if you are referring to a clear, very noticeable swirl mark, it is very likely that something got stuck between the sandpaper and the surface.