The characters who believe that in-universe could just be unreliable narrators, as in it's not how it really is, it's just what they assume.
There may be fundamental differences between “biological/analog” and “mechanical/digital” computation, and the Machines keep human brain-farms for distributed biocomputing to complement their own.
After all, they even provide us a shared VM to "train" in.
If it was just for batteries, wouldn't cheetahs on treadmills be more efficient?