Some industrial scale miners might have commitments to buy electricity at a certain rate. It could be more expensive to break a contract than to keep their equipment running when the exchange rate temporarily falls below profitability.
Also not everyone has easy access to an exchange. Others may prefer to avoid the KYC paperwork, or simply be willing to pay a premium for freshly mined coins.