A direct answer box is a part of Google’s Knowledge Graph. These appear at the top of the search results with a direct, quick answer to a question. Search queries that include a question about real-world things will most likely return a direct answer box.
Google results on Desktop
Google results on Mobile