Just because a language has a certain writing system doesn’t mean it’s related to other languages with the same writing system. Farsi (or Persian), for example, uses the Arabic script, but it’s more closely related to English than Arabic.