I received a SSA-1099-R OP1 for an overpayment that I made to SSA in 2023. Why does this not reduce my taxable income since I paid taxes on it the year before?

It would seem it should since I had to pay that income back and then also paid income taxes on it.