As a toddler, you're developing the physical ability to become more independent, but don't yet have enough awareness of danger to really get there. So it can be frustrating when you want to go it alone, and an adult makes you hold their hand or stop. This can lead to the, oh so famous, toddler tantrums.
As frustrating as these can be, each is an opportunity to teach your toddler how to express themselves. If they have language you can help them to verbalise their distress, if not you can use signs, or just take the chance to comfort them.
Once they are a bit older, it can become an opportunity to teach empathy for others - for example "When you take Tommy's toy, he feels sad". This can also develop into learning how to turn take, and maybe even blossoming friendships.