State taxes

I am military and have Texas as resident for home of record. I PCS’d in 2021 from Texas to Virginia. My spouse started work in Virginia only. Why do I need to change to filing separate when I’m at the state filing step?