State tax withheld but I never worked in that state!

Hello, I worked for a MA employer... but I never worked in that state (remote employee).  I worked from NH where there is no state income tax.  The MA employer withheld MA state taxes, but when I fill out the MA return and specify that all my income was earned outside of MA... it still says I owe the tax.  What am I doing wrong?