When you brew coffee, the grounds retain some of the water (roughly 2g of water for every 1g of coffee). If you prepare your coffee by weighing everything with a gram scale, the water:coffee ratio is based on all of the coffee and all of the water that goes into the brew.
But, for instance, suppose you want to brew a single serving, and want a specific amount of brewed coffee in your cup when you're done (and don't want to just brew a random larger amount that might be short of the desired serving, or a little more that you will need to drink after it's cold or toss).
You need to start with the desired serving size of water plus the amount of water that will remain in the grounds. And the amount of ground coffee required will be based on the amount of water in the finished serving plus the amount of water that will be retained in those grounds, which will be based on the amount of grounds you're trying to determine.
How do you figure out the required weight of coffee to produce the desired finished serving size? I had to figure this out for some testing, so I'll share it.