In order to "mine" bitcoins, you basically have to find numbers. Think about primes: 2, 3, 5, 7, 11 etc. Finding primes starts becoming harder to do the bigger the number gets, so requires a lot more processing power. That's the basic concept behind bitcoin. The more have been discovered the harder it is. Part of the mathematical process to discover them also means there's an effective limit to bitcoin, too: somewhere around 20 million if my memory serves me. I think one new bitcoin is discovered every 10 minutes, this will be about every 20 minutes in a few years time, and get worse. The limit will be effectively reached in a couple of decades. This prevents rampant inflation.You can functionally make an infinite amount and render the entire thing useless.
Also why does mining for bitcoins require extra electricity? Computers do have a hard cap on how much juice they use, you can't just shove lightning bolts into one and make Vision.
After that it's a numbers game: the more computers you have working on it, the more processing power and the more you can discover bitcoin. You can of course also link computers to increase processing power: and here's the trick with viruses that if people take over processing power on other people's computers to do it, they don't even need to be the people paying for the hardware and electricity. In fact, it's probably going to become the only viable way unless bitcoin goes up in value a lot, because it will cost more in electricity than it will gain in bitcoin.
As said, I think currently the amount of computer power finding bitcoin is estimated to be higher than the entire electricity generation of Argentina: !!. And there's another similar amount mining the other big digital currency etherium, plus whatever other cryptocurrencies are out there. This is extraordinarily energy inefficient and, via fossil fuel electricity generation, a significant environmental burden.