They didn't:
> It’s true, babushka means “grandmother” in Russian. The thing is, here in Australia, “babushka doll” is the colloquial term for Russian nesting dolls. Deps are intended to be small, tidy chunks of code, nested within each other - hence the name.
Last paragraph: http://babushka.me/overview
Always coming to the rescue of her grandchildren.