How token is retrieved during login?

I am new to keycloak. When we login using keycloak token is also called. How this is done i.e if an api is called specifically for the token or is there an event triggered for the calling the token.when i inspect in the browser network tab, no calls is shown for the token? so how its done?