I keep seeing role attributes in some people's work. I use it too, but I'm not sure of its effect.

For example:

<header id="header" role="banner">
Header stuff in here
</header>

Or:

<section id="facebook" role="contentinfo">
Facebook stuff in here
</section>

Or:

<section id="main" role="main">
Main content stuff in here
</section>

Is this role attribute necessary?

Is this attribute better for semantics?

Does it improve SEO?