Changing of the Guard

What does the idiom “changing of the guard” mean?

Definition: a change in leadership at an organization

Example: There’s been a changing of the guard at Volkswagen since the company was hurt by a scandal over measurement of emissions.