The argument is slightly different. It's not economically efficient to allocate wealth to children according to their parents' abilities (as opposed to the children's abilities). Doing the latter (as opposed to the former) will maximize the aggregate wealth of a society.