They were attempting to go home. Golan is their land, not israeli. Do you not know Israel actually occupies Golan? They didn't cross any border. But a ceasefire line. The IDF is on the wrong side of the border.
Two mortar shells explode in Golan Heights, no casualties or damage reported (Haaretz)
from the article: IDF fears continued Palestinian infiltration on Syria border