Germany has not experienced what countries like U.S., Pakistan, and India have experienced. When the terrorists are numbered in tens of thousands, it becomes a drain on the economy to support them in prisons. The U.S. has that kind of money and facilities too, and still it's facing the flak of its own people and even international community for going lenient on terrorists - all that when they have barely a thousand or so terrorists to deal with.
When it comes to Pakistan, in terms of such resources, it is not only the poorest country, it also has the largest number of terrorists continually attacking the state.
What else is Pakistan supposed to do, protect these terrorists and take care of their food and lodging till they die of old age while the kids outside don;t even get a decent education for the lack of money?
There's no two way about it, Pakistan ought to do what it thinks is in the best interest of the nation.