What is the power house of the cell

I want to know why mitochondria is called the powerhouse of the cell and what its function is.