Because - technically - the subtask isn’t added to the project.
Adding it to the project (opening subtask and using shortcut tab+p) will make it visible twice. Both as a task, and as a subtask.
I agree that this is counter intuitive.
Please note that Allow to automatically add subtasks to project is currently marked considered, and would likely solve this.