Facebook bought instagram because it was good business. If they didn't buy it, someone else would. Most of the sale price was in facebook shares, not cash.