It expresses the idea that adding different or varied elements to one's life can make it more interesting and fulfilling.
This phrase comes from the 17th-century English writer William Cowper's poem "The Task": "Variety's the very spice of life, That gives it all its flavour".
It serves as a reminder to seek out new experiences and broaden one's horizons to attain greater enjoyment and satisfaction in life.