This is an outcome of contact situation. When a language no longer gains new speakers, it becomes extinct.