Smart miners mine during the slumps in BTC prices when there is less competition. They get more BTC, even if it is currently worth less USD. They then hold the BTC for the next rally. Most large miners are also cash flush early BTC adopters who do it for hobby and ideology.