It’s not. Human rights are only human rights if they are universal and even criminals deserve to be protected from abuse and torture.
Plus, it doesn’t actually solve anything. It just moves the problem elsewhere and will most likely have involved the German government directly giving money to the Taliban regime.
Many other countries do in fact do that.