There used to be all kinds of shady s**t like this (I mean: there's still some, but there used to be lots). Any piece of slightly-dubious freeware you installed would try to install its own browser plugin, toolbar, or reconfigure your home page or default search provider. Usually there'd be a well-hidden checkbox to un-check to opt-out of the unwanted behaviour during installation, but not always! You had to keep your wits about you if you didn't want all kinds of adware and spyware on your system.
More-modular systems, better security architecture, and least-privilege principles have helped a lot over the last decade or so.