In this case, the A must have been cashed already at an earlier stage to squeeze East when declarer leads the A and discards the 2 from the table.
In this scenario, the A must have been cashed previously at an earlier point to exploit East when declarer plays the A and discards the 2 from the table.