Why oil and vinegar are used to make pickle?

because oil have light wieght than water have heavy wieght