The children of Israel had been slaves in Egypt for hundreds of years.

God told them "Take a lamb - one for each family.
Kill the lamb and put the blood on the doorposts of their homes.
Roast the lamb and eat the flesh, then get out of Egypt."