Why am I paying taxes on my income to North Carolina when I did not earn any income in North Carolina?

I earned all my income completely in South Carolina. Why is it subject to North Carolina tax?