explain why some of the leaves may get detached from a tree if we vigorously shake its branch...?
The leaves would get detached if the force applied is greater than the force that holds those leaves attached to the tree. Every shake of the tree would not result in falling of leaves but only those that generate greater force than the force that holds the leaves to the tree.