This is generally correct, that gas is often a byproduct. Consider the location and availability of gas pipeline and collector/compressor stations. And sometimes when pipelines are present they are already at capacity. It is a fascinating industry that is greening (less flaring, electric drilling).