Based on the information you have provided, it sound like you were a Part-Year resident of Massachusetts starting March 1st. Here is the official Massachusetts guidance for your reference: TIR 95-7: Change in the Definition of "Resident" for ... - Mass.gov.
The reason the amounts vary is that in general, residents pay tax on all income regardless of where you earned it and nonresidents only pay on the state source income. In your case, your state source Massachusetts income is your wages for January to March. As you can see, it makes a big difference.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"