Can anyone please explain why the gas flare from oil drilling is burned rather than captured and put to better use? Or used to provide a source of local heating?

Thanks

GNG