Hey Harold,
The API key is needed on the landing page to process the action. It is also possible a developer could use the same landing page for multiple projects with different API keys, we have to pass the API key corresponding to the code so it can be processed correctly.
Besides, if someone is determined to get your API key, they can just inspect your source code or the network requests. Anything that lives on the client is not really a secret.
To also allay your concerns, Firebase Auth adds throttling to lookup APIs so such an attack is not feasible.
If you ever suspect anyone using your API key maliciously, you can always revoke it and create a new one from the Google Cloud Console.
Best regards,
Bassam