I remember it being a problem in the US in the 2000s when airlines would group families together and if you have different last names, they wouldn't do it. I guess now they don't group or go by tickets instead of considering last names.
As far as I know, it's always been grouped by reservation / record locator. Like... the airlines do know how to sell more than one ticket at a time and remember that fact.