Confusion on filing a state non-resident and resident return

I sold a home in Ohio, where we did not live.  I went through Ohio State taxes first, as advised in another question.   However, Ohio picked up all of my income, intereset....?  Maryland picked it up as well an only credited me the cost of taxes?   Seems wrong?

 

Called support.  Couldn't help.