An SEO Question

I was wondering…have you noticed how when you search for something in Google sometimes there will be subpages under the main site? Like in the attachment below.

How is that achieved?

Thanks in advance!