Why does a flowering plant have so many leaves?

flowers require lots of energy, leaves produces energy for plants