Who knows? She knew she was captured, maybe you were her way to hold onto hope. She grabbed your leg. Did she do so to pull you in with her or as a last-ditch effort to keep herself out of it? Who knows?
The thing is, you know where you belong. Outside of it. Completely out of it. So that she knows you are there, when she climbs out again, on her own two feet, with her power and intention.
This was a huge success, New Leaf. Really. I mean that.