On the contrary, I imagine a lot of the nuts are planted by squirrels! In either case, many plants have an implicit bargain with animals: eat my fruit, but you must carry my seeds out beyond where I can reach and deposit them there.
Which happens when they pass through the gut, essentially.