State tax filing

I'm in Texas with Oklahoma non-resident income but am perplexed about the arrival of tax due using the Adjusted Gross Income from All Sources. Why should earnings from other states be part of the equation in Oklahoma? After many deductions, the AGI All Sources is 5 times the Oklahoma income.