I read in an explanation that the tangency portfolio has all securities with weights proportional to their market value because supply equal’s demand. But I can't understand why supply equals demand explains why the “best” portfolio is the combination of all stocks, with weights proportional to their market value.

If anyone could elaborate on that, I would really appreciate.