Essentially, they are trying to determine what your basis is in the IRA. Massachusetts only taxes your IRA after you have withdrawn from your basis portion. This differs from the IRS which taxes all distributions.
Please see the attached explanation by ScruffyCurmudge for a more detailed explanation of the rationale.
Here is additional information from the state of MA with additional information:
**Mark the post that answers your question by clicking on "Mark as Best Answer"