When I purchase a product, Google can track that package if it detects tracking info.
When I book a flight, Google notifies me when the flight is leaving, providing suggestions about when to leave my house in order to make it.
All of these things can be done from reading your email. For someone invested in the Google ecosystem, this is a nice and seamless integration that helps me in my life. That is why they are extracing data from your mail.