“The original story had the brains of the humans being used as part of a neural network for additional computing power. But the suits thought that was too hard for people to understand.” [0]
[0] https://scifi.stackexchange.com/questions/19817/was-executiv...
From what I recall, that was actually what was originally scripted, though the explanation in the script was changed after test audiences for the first film responded poorly to it.
But it's also pretty clearly the underlying mechanics in the film, that guide how everything in the Matrix actually works, even after they made the explanation given in character more appealing to test audiences. (And, actually, I think given what we find out about “free” humanity being a system of control itself, having them adhering as an article of faith to a fairly transparently false explanation that they've clearly been fed actually fits the theme fairly well.)
Of course, this is "hard science" that you learned in The Matrix...
Because, after all, they'd need to be "fed", and wouldn't produce any net energy. That was in the original screenplay. But they decided that most people just wouldn't get it. So we got what we got.
Stuff like that ruins (for me) most films that ~rely on ~hard science. Explosions, for example. They are typically far too slow, with far too much dancing flame. In reality, they're virtually instantaneous at scales much less than kilometers. Saving Private Ryan is a notable exception.