State tax filing

If you can pay it with refund then why do they offer that when you pay for the fees on turbo tax. And they took it off of my refund for state I believe because I got Illinois state refund. Either way they took money and it did not get paid.