After you file

Did 2016-2018 taxes with TurboTax and all received a refund. Now, in 2019, it is using all the refund to pay for a 2016 payment. How come this wasn't caught earlier? How come I received a refund and then now it's saying I owe?