Fact: Why did Noah take seven pairs of each clean animal but only one pair of each unclean animal?

Why did Noah take seven pairs of each clean animal but only one pair of each unclean animal? After the flood, some clean animals were needed for making sacrifices and for food. To ensure their survival, it was necessary to have more than one pair of each kind in the ark.