Dear student,
Methane is a greenhouse gas. When it gets leaked in the atmosphere, it absorbs the sun's heat and warms the atmosphere. Methane gas is harmful if exposed to the atmosphere.
In biogas plant, the methane obtained is used as a fuel. It undergoes combustion and produces energy.
Since the anaerobic decomposition releases methane directly into the atmosphere, it cannot be used as a fuel.
Regards.