> I thought a wicket is what you call an out? Now it’s something else, too?
It's a metonym.
The actual wicket is the wooden things the bowler is trying to hit. Because hitting the wicket eliminates the batter, the word is also used colloquially to refer to an out.