I payed my federal tax with my state refund money. Why did the federal amount that I owed get pulled out of my bank account at a random time.

The federal amount was already deducted from my state return and now is pulled out of my bank. Why am I charged twice?