How is it possible that I owe taxes to a state I don’t live in anymore if I didn’t make much at my last job?

I didn’t owe any taxes to the state of Utah, then my last job in Oregon sent me my W-2 for my last paycheck I received last year but I forgot about it. So when I amended the return, I now owe Oregon, how is this possible?