Role in SEO and the general purpose of it in the website?

It gives you a nice icon for your site, which can be viewed on your tabs and typically on your address bar.

It’s SEO value is zero. There is no logical reason for a silly icon to mean anything to a search engine.