what a garment wash actually does to cotton

A garment wash is what it sounds like: the finished cap goes into the machine, not the fabric. The alternative — washing the yardage first, then cutting — is cheaper, more predictable, and produces a cap that feels broken in for about a week.
Washing after construction shrinks each panel against its own seam. The twill pulls slightly across the crown, the stitch lines settle, and the visor takes a curve it keeps. You cannot fake this at the fabric stage because the softness comes from the seams moving, not from the cloth alone.
the softness comes from the seams moving, not from the cloth.

It costs more. Yield drops, sizing drifts by a few millimetres across a run, and every cap has to be reshaped by hand afterwards. On a hundred units that is an afternoon of somebody's labour that a fabric wash would have saved.
We do it because the first hour you wear one of these should feel like the hundredth. That is the whole argument.