It specifically relates to legislation such as the
DMCA that makes it illegal to disseminate software or information that can be used to circumvent DRM.
Softrooting or even hard-rooting only invalidates your warranty, it is not illegal. If fact it is protected activity though Apple and others might like it if it were illegal and try to act as if it were.