Most oils for gas engines come in 5quart jugs: Mobil 1, Kirkland (Costco), Valvoline, Pennzoil, Castrol, Motorcraft, Quaker, Royal Purple, etc.
Most diesel oils are sold in 1gallon/4quart jugs: Mobil 1, Shell, Valvoline, Pennzoil, etc.
There are some oddballs, like Amsoil, that sell both their gas oil and diesel oil in 4quart jugs (no 5quart). And Motorcraft sells both gas oil and diesel oil in 5 quarts. But, I submit that anyone doing their own oil change is going to know what size oil jug they bought and how much oil they are adding...Or at least use the dipstick afterwards to discover their assumption of jug capacity was wrong and they will only make the mistake once. Ha.
In any case, oil jug capacity decisions are not based on oil capacity of vehicles. There are industry standard containers available; 1quart, 4quart, 5quart, etc. and they are used for a lot of other things besides automotive liquids like engine oil and antifreeze. Whether you purchase your oil in 4quart or 5quart sizes, the majority of vehicles on the road do not have an oil capacity evening divisible by 4quarts or 5quarts so you are using partial jugs anyway. So most people changing their own oil are used to using partial jugs and paying attention to how much they are putting into their engine during an oil change.
If there are vehicles that have an oil capacity evening divisible by 4quarts or 5quarts, it is likely a coincidence or, it would have to be a design decision by the vehicle manufacturer since oil jug manufacturers are not making various jugs sizes to match oil capacity of a vehicle. More than likely, the diesel engine using an even 15quarts was a coincidence. Engineers decide how much oil is appropriate. Commonly-available oil jug size does not play into their calculations.