Military Income

I'm doing my daughter's and her husband's taxes .  She's married to a man in the Army who is on active duty.  They are legally residents of Florida, but they were assigned in Maryland for half of 2022.  My daughter had $18,000 of income in Maryland.  TurboTax  shows a non-resident 505 form, and shows that their combined returned has the $18,000 of taxable income in Maryland.  His military pay isn't  being taxed (which I understand).  Why is her income taxable in Maryland when she is legally a residnet in Florida?