Each VPS server has its own dedicated and isolated RAM and other resources required for it to function. Working in its own environment makes VPS more secure than any shared hosting.