That's not why either were started. Both were started as just cool little projects by guys who wanted the product. They may have rapidly shifted into growth at all costs, but that's not why they were initially created.
I do agree that they weren't created to solve a problem in the way DropBox was, just to scratch an itch of the founders. Which makes growth hacks like Dropbox's referrals much more difficult. Dropbox could survive on people loving the product no matter how many others used it. Snapchat and Instagram value to users craters without a critical mass of users.