Siri is always listening for your voice, and then uses the information it has about you, your location, calendar events, contacts, and so on, to come up with a response. It also looks at past conversations you've had with this app or others that use similar technology to give you some suggestions.