No, they are not the same. Compatibility libraries is not the same as compatibility programs.
The compatibility libraries group (which no longer exists in 8 and up) contained packages like compat-libcap1 and compat-openldap. Legacy UNIX compatibility group is in 7, 8, and 9, and contain legacy programs. In 8 and up, it is currently only mksh.