There are many such languages, not just two. A language isolate is a language that is not closely related to any other language.
Probably the best-known example is Basque, spoken in parts of Spain and France. Because it has no relatives, it is a family unto itself.
The Korean language also has no known relatives, though many linguists have suspected that it is distantly related to Japanese.