to get the readers' attention and make them interested in reading further
If an essay had a boring beginning, the reader wouldnt be interested in reading it and the point is to get someone to read it
They do this to grab your attention, to get you interested and thinking.