The second thing is they install without your knowledge, or by tricking you
One common way they get on your PC is when you install a piece of software, such as file-sharing software
When you install that software, spyware often comes along for a ride, and installs itself without your knowledge, or misleads you about what the program actually does