So countries we are not at war with can train terrorists and send them over here, while protecting the trainers? And that too while claiming to be anti-terror "allies" and raking in billions in aid and weaponry.
Of course, it is very simple after all, international politics.