Kudos to Apple for holding on to their principals, but timing of Tim's public speech and the these lawsuits seems like more than a coincidence.
https://www.dailydot.com/debug/tim-cook-data-weaponization-speech/
It's a war between Apple and everyone else for your wallet. Apple makes money on products and services. G and FB make money off advertising.