State tax filing

the only way to get any refund due to you by either state is to file for that state. please clarify why taxes from both states are being taken out.