It’s pretty common that subtasks are not directly a member of a project as in this example (though they could be). If a subtask was given a project membership, you’d see the project name under Projects in the screenshot.
On mobile, to see the parent task’s project membership, you have to click on the parent task name first in the header, then you’ll see it.