Slavery was in every country in Ancient times.
It actually wasn't very big in Ancient Egypt.
It was partly a symbolic thing. After invading a country, you would take a few of the people back to your country. This showed how you had truly conquered the country.
Most slaves worked like servants in rich households, including that of the pharaoh.
They were allowed to marry and have children. They could be freed by their owners.