That is a greater good argument, but who really benefits here? In a somewhat best case scenario, some big companies and their equity owners gain all the data and perhaps develop proprietary solutions only they can prescribe. We then sacrifice our collective health privacy for some people who might benefit if they pay an uncompetitive price for the treatment. In a worse case situation, no cures or treatments are ever found, but these companies benefit from the surveillance and knowing what existing drugs and treatments they should invest money in to profit from, allowing them to game the market.
If this data was held in the commons and the benefits such as cures or treatments were not patented, we might have some incentive to provide it. In this case, everything is privatized for the benefit of a few.
Notice that your if’s are not part of this arrangement. You cannot opt out, and you do not get a cut of the opportunities created. The lawyers are Google ensure they get the benefit, and not us.