Explain like I’m 5

How does a card company go bankrupt aside from stupid spending decisions like surely manufacturing and storage is easily covered by the retail price? I am so confused