It's a matter of "pointing" better.
Some years ago, the NRA did a Dope Bag Technical article to answer this question.
There was, (and still is) a wide belief that a longer barrel shoots "harder" or farther, or patterns better.
To investigate, the NRA bought a Marlin Goose Gun with a 36" barrel.
The installed a choke device on the muzzle and fired the gun for pattern and velocity.
They then cut the barrel off one inch, reattached the choke, and repeated the velocity and patterning tests, and continued cutting off in one inch increments.
According to their results, they determined the following:
Anything that's going to happen ballistically in a shotgun barrel, happens in the first 18".
A barrel longer than 28" actually starts to loose velocity from friction.
That the longer barrel equals more velocity was a left-over from the black powder days.
The gun continued to have good velocity and patterns down to around 12" before as they put it, "Things started to get too far out of hand".