There are several different factors.
Participation: many schools cap attendance due to an overage of demand.
Community: F45 has a record of bringing together various groups that would otherwise not work out together (faculty/staff, students, athletes, freshmen, seniors, male, female, etc). The common thread is the team atmosphere.
Revenue: if you charge for F45, some schools generate more than 200K per school year.