It's related to Persian and has Arabic loan words. You can say the same thing about English too.
English is also an official language of Pakistan.