A subtree rooted at node includes and all nodes below it. When you compute , you only need information from 's subtree. This is why tree DP works: each subtree is independent.
Once you know the answer for every child's subtree, you can compute the answer for the parent. Leaves have trivial subtrees (just themselves), so they're your base cases. If you try to compute before computing , you'll be missing the values you need. The order matters.