can I have a W2 from a job I haven’t work at in 2 years?

Haven’t worked for Walmart in 2 1/2 years so why do I have a W2 form