They're earned by implementing the appropriate schema markup and meeting Google's eligibility criteria.
Rich results lift CTR by 20-50% on commercial queries.