On shared hosting you share server resources with other clients, while on a VPS you get an isolated partition with guaranteed CPU, RAM and disk space. A VPS also lets you install any operating system and any software you want.
Answer