Some smartphone manufacturers use a customized version of Android with their phones and do not include Google Assistant in the list of pre-installed apps. In such a case, you will have to download Google Assistant from Play Store manually and set it up.
Additionally, some smartphone brands like Samsung use their own voice assistants like Bixby, which you can use as an alternative to Google Assistant.