This is the "keys to the kingdom." If an attacker finds this, they can connect directly to the application's database, dump user data, modify content, or wipe the system.
The .env file often looks something like this:
To prevent your database and Gmail passwords from appearing in these searches, follow these best practices: Set up Gmail App Password for Nodemailer - DEV Community