When a US President selects cabinet members and other appointees, they often get pulled from current members of Congress. If the person is particularly effective in Congress, then you have to debate whether it's better to leave them in their current seat or to assign them to the cabinet and leave their seat open for a new, less experienced congressperson, potentially from the other party if they're from a moderate district. Given that cabinet positions are limited to the President's max of two 4-year term, and congressional seats don't have term limits, you are essentially removing someone effective from Congress permanently. Yes, they are still definitely allowed to run again, but if someone from their same party has replaced them, it wouldn't look great to run against them in the primary to get the seat back.
Have there ever been cases of cabinet members going back to run for Congress again once their term is over? If so, how often does this happen?