Many mining companies ended 2024 in the red, despite the growth of mining activity and peak Bitcoin (BTC) valuations.