Market cap is based on the price of the last transaction multiplied by the number of coins. It's not related to the total capital flow.
https://coinmarketcap.com/charts/