Well, the extra-energy can be stored and sold later. I think that it isn't profitable mining bitcoin with this extra-energy because of the high price of the ASICs (and the maintenance). Not only free electricity is necesary to mine bitcoin, it's necesary a investment in machines and space.
Bye
You really can not store AC power in any meaningful way.... and AC to DC, then back to AC for transmission.... that isn't efficient either.
The power system, likely looses about 25 to 40 percent of the energy from generation to your door in things like line loss, along with losses at transmission.
While I am not saying the OP's idea is good or bad, since power systems are run by governments, and they manage to mess it all up at least 3/4 of the time..... storing electrical energy isn't as easy as you would think.