Producing energy doesn't mean creating it from nothing, as that would violate the principle of conservation of energy, in Physics.
Energy production thus refers to converting energy from one form (often an storage form) to another form, which is useful (to do mechanical work often).