Many people favor the feel of a foaming hand sanitizer (including kids!) when applied to their hands and tend to spread it more consistently for better sanitizing coverage.
From an application standpoint, foam products don’t require as much product to be dispensed as compared to gels.