If HSA employer contributions were only made from current employer, in NM, why is this also added to previous income, in CA?

I am filing using 2 W2's, one from my former employer in CA, and the second from my current employer in NM. The NM employer contributed to my HSA, but CA did not. Why does this affect CA income in any way?