why does methane generate electricity
Methane is just used as a fuel for a gas turbine (can also be used to drive an internal combustion engine coupled to a generator). The turbine is coupled to a generator, which generates electricity.