Why was the Northwest Ordinance of 1787 enacted?

Why was the Northwest Ordinance of 1787 enacted ?