2021 state taxes paid in 2022

Under "Deductions & Credits," "Estimates & Other Taxes Paid," "Other income taxes," "Payments with your 2021 state extension" ----- "How much of your 2021 State taxes did you pay in 2022?  Enter the 2021 State taxes you paid in 2022 with your extension of time to file your 2021 State return."

 

I don't understand the bearing this has on my 2022 taxes.  This amount was credited to my 2021 tax return and used to pay my 2021 State taxes.   Any overpayment of my 2021 taxes was carried forward to my 2022 taxes.  If I enter this amount, it looks like I will be declaring it twice:  once for 2021 and once for 2022.  

 

Thank you for your help.