This is expected behavior for Subtasks.
By default a Subtask doesn’t belong to any Project. You are able to add a Subtask to Project after it is created. (You can add a Subtask to a Project, in the same way you add a Task to a Project.)
You aren’t the only user that has issues with this behavior.
Here is a topic where you can vote for Subtasks to be automatically added to a Project.