There’s yield bubbling up in the oil patch.

A group of companies that is amassing mineral rights beneath oil fields is paying out enticing dividends, with yields upward of 10%, even as shares of the companies drilling the wells are having a miserable year.

Mineral rights entitle these firms, including Viper Energy Partners LP and Kimbell Royalty...