Because in an efficient market, if one of the currencies is preferable that will already be reflected in the price. If, based on public information, you would rather hold currency X than currency Y, then so would your counterparty in the exchange, so the buying power of currency X would rise accordingly.
Gresham's law applies when a legally fixed exchange rate means that the price can't reflect the difference between the two currencies.