Exchanges get their bitcoin from users and investors. Some exchanges offers share token and sold it to the market. Next is users are paying for fees everytime the made a trading transaction. There is also this withdraw transaction where they charge you a certain percentage of you withdrawal.