Cabinets in modern democracies are generally partisan, meaning their members are typically affiliated with the ruling political party (or coalition parties) and selected to advance partisan goals, policies, and loyalty to the executive leader.
In Parliamentary Systems (e.g., UK) The cabinet consists almost entirely of members from the majority party or coalition in parliament. The prime minister appoints fellow party members (usually MPs) to ensure collective responsibility and party discipline. Non-partisan or technocratic appointments are rare and exceptional.
In Presidential Systems (e.g., US) The president appoints cabinet secretaries, who overwhelmingly come from the president’s own party for political alignment and loyalty. While cross-party appointments occur occasionally (e.g., retaining a defense secretary from the previous administration for continuity), they are uncommon.