Leavening is the only cause of flat gingerbread we could actually prove
More leavening lifts the cookie and shifts its pH, which moves both how far it rises and how dark it gets. Across 16 bakes where we could isolate it, more leavening relative to flour meant a flatter, wider cookie. We tested this ingredient by ingredient and checked the results against the possibility that testing that many things would turn up a fluke. Once we corrected for that, this is the only lever or shaping choice on the whole dish that still held. Nothing else we tested came close, and nothing else survived being checked this hard.
Look at how much baking soda, or baking powder, the recipe calls for against how much flour it uses. Gingerbread recipes vary more here than most cookie recipes do, partly because some cooks lean on extra leavening to fight the density that molasses brings. A slightly heaped spoon is a bigger error here than almost anywhere else in the recipe, because the amount you're measuring is already so small to start with.
Level the spoon and measure the leavening exactly as written, no "pinch more" out of habit. If your last few batches have all come out wide and thin, this is very likely where it started.