Short answer
Often less than for a car on the street, but it is not wasted. A garage takes away the overnight exposure: fog, salt film, sap, bird droppings and sprinklers. It does not protect the car while it is driven and parked elsewhere, and it does nothing about the main everyday benefit of a coating: washing becomes easier and gentler, so the paint picks up fewer swirl marks over the years.
If the car is garaged and you are keeping it for years, a coating still earns its place. If it is garaged and rarely driven, a sealant tier, or the Premium Buff-On Wax at a detail, may be all it needs. Pick on how long you are keeping the car, not only where it sleeps.
Most coating advice is written for cars that live outside. This is the version for the car that comes home to a garage.