What happens if I delete my old W-2s?

I deleted my W-2s from 2021 while filing for 2022 because I didn't think I needed them, and my federal and state tax refunds increased. Why would my 2021 W-2s have any impact on 2022? I later read that I can delete a W-2 from an old employer if I am no longer working for them, but I haven't found anything about deleting a prior year W-2 from my current employer.