Live in Tennessee but work in Illinois. I did not pay income tax this year but now it says I owe taxes to IL. Is that right?

I had IL income tax taken out in 2022 when I had moved to Tennessee, but I was reimbursed for it because TN doesn't have income tax. My employer updated my forms so I did not have any IL income tax withheld this year, however, now it is saying I owe a few thousand plus in state taxes to IL. This seems conflicting - am I supposed to pay income tax to IL if I don't live there?

I see info online that says you do unless you live in certain states (like WI, IA, MN, KY) but if that's the case, why did I previously get reimbursed? Did it change for 2024?