I’m just familiar with the physics and techniques, reading Scientific American or whatever. My ex wife is a chemical engineer and I looked at her stuff some… A bit of googling:
https://en.wikipedia.org/wiki/Natural-gas_processing

There’s a lot of processing of raw gas. Towards the end, it goes through the “NGL recovery” which cools it below ethane boiling point so the “NGL” (mixture of ethane, propane, butane, pentane,…) comes out as a liquid, methane as a gas to the “sales gas pipeline”.
The NGL goes through a train of fractionators. I think they’re the tall columns:

The NGL is cooled and compressed to make it a liquid. It goes into the bottom of a fractionator (column). As the liquid rises through the column, it warms. There are taps at different temperatures. They tap off the gas that boils off at that temperature. When the temperature goes above the propane boiling point, most of the gas at that tap will be propane. There will be some lighter gases, like ethane, that missed the previous tap. There will be some butane even though the temperature is below it’s boiling point.
For the isobutane tap, that will also extract a lot of n butane because their boiling points are similar. What comes out is about 50% isobutane, 50% n butane, plus some other gases.
If you want more pure isobutane, then you have to run it through another fractionator. Maybe the output of that will be an isobutane tap of 80% isobutane, 20% nbutane. And an n butane tape that has 20% isobutane, 80% n butane. Run the 80% isobutane through another fractionator and you’ll have a 95% isobutane tap…
This all is the general idea, I’m no chemical engineer so some of the specifics are not quite right.
The “isobutane” in the shaving cream? It’s cheaper to use the less refined mixture of about 50% isobutane and 50% n butane.
Same thing with “cheap butane” you get at the Korean grocer. Cheapest to use a mixture of about 50% isobutane, 50% n butane.
I read somewhere that isobutane is more useful, so they can “crack” n butane into a mixture of n butane and isobutane, then run it through fractionator(s). Another complexity.
n butane is used as a refrigerant. That has to be fairly pure, so they have to run the gas through many fractionators (a fractionator train) to get the purity needed, and thus it’s much more expensive.
What’s cheap is a mixture. What’s expensive is to keep refining it to get more purity.
All of this uses the same physics as propane preferentially evaporating out of a canister. Except refiners have to have a continuous process where raw material constantly flows in, and various distillates flow out in different taps.
Gases with similar boiling points are difficult to separate. Gases with much different boiling points are easier. Propane is much colder boiling point than butane so the propane listed way above has only 0 to 2.5% butane. There’s more gases like ethane and pentane because they have similar boiling points as propane.
Does that answer your question? Or too much? : )