Nonresident

If I live in Kentucky but work in North Carolina, why do I owe such a large tax to Kentucky and North Carolina where I am not a resident gives me my money back