Oil and gas companies may look like a risky industry on the outside, but private equity investors have found reasons to regularly invest in these firms.