It is a waste, I agree. There’s regulatory pressure building on venting and flaring. Unlike CO2, methane really is a greenhouse gas, plus it contains some fractions that can be toxic, like benzene.
The industry is steadily starting to implement capture rather than flaring. The problem is then transporting it. The flaring and venting happens at a stage of development that typically comes well before there is a gathering line to take the gas away.
I’ve seen some (perhaps vaporware?) “modules” described online that can be dropped off/installed to grab the stuff and store it for truck pickup. I’m not sure about the economics, but “free” energy is a definite economic driver.