IMHO a big reason this can happen, & so much more, is outside private companies run our Government systems.
Too much room for error, hacking, influence, overpaying, etc.
This is prevails throughout or Government. Private Prisons, immigration detention, on & on. Private companies