Why 7 teams specifically
Seven is awkward: it doesn't divide a class of 30 cleanly, and most picking methods leave one team short. The generator just rotates assignment so the imbalance is at most one person per team, which is the mathematical best you can do.