Intelligently. RAM that would otherwise be laying around is cached (depending on what Vista thinks you would be most likely to run or use next), lowering speed times when it is able to call that RAM into use and bam - half of what you need is already loaded. The RAM can still be used for other activities, though, if a program requests more of it.
It's a much better use of what would otherwise be a waste of space.