I found out that I was overpaying Oregon state tax for years. When I enter the OR refunds in Turbo Tax for 2017-2019, my fed tax increases. Why?

I don't live in OR, but I was paying tax like a resident. When I found out, I had him refile and got refunds. Turbo tax asks about state and local tax refunds, so I entered the info. But my fed taxes go up when I do. I don't understand?