We probably would invent new languages, or at least new dialects, to signal group membership. If somebody has made the effort to learn the language then they're probably serious about being part of the group. As a practical example, consider the revival of the Hebrew language, which happened mostly as an expression of Jewish identity. Strengthening group identity is the main motivation for preserving rare languages.