In what purpose machines used people in "Matrix"?
Machines wanted to kill all people.
Initially, the machines were powered by sunlight, but people covered the sky thinking that it would allow them to overcome them. Machines started using energy from human bodies to power themselves.