You can get free breakfast at a hotel in a few ways:
Purchasing a hotel rate that includes breakfast
Staying at a hotel that offers free breakfast to all guests
Using hotel elite status to get free breakfast
Booking your hotel stay through a website like Fine Hotels & Resorts