The best explanation is: Because cabinet members work closely with the president, the president can nominate individuals they believe will best fulfill their duties.
This reflects the intent of the Framers to allow the president to select advisors and appointees who align with their administration's goals and policies.