No its not. It would be waste only if the there is a high temperature gradient, which is minimized in mining operation through proper cooling.
It's that computation requires electricity. And almost all of the heat in bitcoin mining comes from computation, technically changing transistor state.