(1) a customer would go to an exchange’s website and purchase 1 Bitcoin
(2) the exchange would add 1 to an internal counter representing the Bitcoin balance for that customer on their internal SQL database
(3) the exchange would use / trade that money sent by the customer to try to make a profit before the customer sold their Bitcoin and withdrew their money
This is how big scandals like FTX and others disasters happened. Also known as “fractional banking”