You're getting it wrong. PHP's (and Laravel) getenv is getting the system's environment variable. .env is a helper that overrides them. It just helping you setup different env var for each project in same system.
If you're using docker, it's fine to just use docker's env_file or environment value, or use Laravel's .env only if you prefer it.
If you're using docker, it's fine to just use docker's env_file or environment value, or use Laravel's .env only if you prefer it.