If you rob node , you get 's money but cannot rob 's children. You can still rob grandchildren. If you skip node , you get no money from , but you're free to rob or skip each child independently.
This creates a dependency: your choice at constrains your choices at 's children. You need to track both possibilities. For each node, store values: the best result when you rob it and the best when you skip it.