Basically, after spawning, Gohmas go in random directions for a couple of seconds before resuming their normal movement pattern, albeit sometimes away from the normal location.
Though I will admit that I think this can make things interesting sometimes, if a screen was designed around the normal movement pattern, this can potentially lead to trouble.