Vector images use maths to calculate how everything's supposed to look, saving only information like line positioning, angles, curves and thickness into the file, then generating them every time you open the image.
Vector is most commonly used for logotypes and things that're supposed to be printed at a very large scale, as that way of creating images gives precisely no distortion at all when resized.