Egypt and specially Jordan are not stupid. They saw what happened in Lebanon.
The Palestinians moved to Jordan after losing the 1967 war, started a "civil" war in Jordan and were expelled to Lebanon after losing in 1971. Only then they started the 1975 "civil" war in Lebanon.