Yes Pakistan is a pretty poor country with quite a lot of instability.
It has a huge population and just does not want to deal with returning and deported migrants. Also Pakistan has been for years taking millions of refugees from neighboring countries especially Afghanistan. So do you really blame them?
The migrant issue needs to be dealt with in Europe as it will not be able to cope. Id we tackle the root cause it will stop future of people.