By default, Matomo only tracks visitors with Javascript enabled. Most bots will not execute JavaScript, although more advanced bots can now execute JavaScript.
In general there are a few options to track bots and search engine bots using Matomo depending on how you track users in Matomo: