The airlines want to keep their best customers happy. Their best customers don't care as much about total boarding time as much as they care about being first to board. Group numbers are assigned based on Frequent Flyer status so the best customers board first.