the actual plot of the matrix was about using human brains in a neural net but they felt the battery angle would be easier for the mainstream to understand.
Humans are not really good or efficient batteries.
Oh that's a cool fact. I feel that plot direction would've been cooler from a SciFi perspective. Battery angle is fine, but a bit limited. A gaint hivemind type thing is pretty cool plot element.