Laws can and have been written that require companies to gather data.
> Similarly, laws cannot force a company to divulge encrypted data if the company does not hold the encryption keys.
Laws can and have been written that require companies to use weaker or broken encryption.