A wicket is a physical wooden structure. To take a wicket means to physically hit the wicket with a ball causing the batter to be out.
A wicket has the same function as a catcher in baseball.