E.G. is an abbreviation of Latin words "exempli gratia", which can be translated like "for the sake of an example".
Many a times we also see i.e. which is also from latin word "id est" when translate into English means “that is (to say)” or “in other words”, mostly used to introduce a further explanation or paraphrase.