whenever [A] happens, [B] also happens
Describes a natural consequence or habitual pairing: whenever A happens, B happens.
This と is used to state that one event or situation always leads to another, often a natural result, a habit, or a discovered fact. It feels like 'whenever' or 'if… then'. The first clause is a condition (A), the second is the outcome (B). Because it implies a fixed cause-and-effect, the second clause cannot be an order, request, or invitation—only a statement of fact or a natural result.
Think of it as a rule of life or a discovery: 'When I press this button, the light goes on.' It is not used for hypothetical or personal decisions. For example, you cannot say 'If it rains, let's stay home' with this と, because that is a suggestion, not a fixed outcome.
Be careful: the word と also appears as a connecting particle meaning 'and' or 'with' (e.g., 友達と行く = go with a friend). That is a completely separate function. Here, と links two clauses as a conditional pattern. If you see と between two full clauses, it is likely this grammar point.