In these cases it’s usually an operations-related team who is able to write queries just fine, but they don’t want to use a terminal with PSQL or have creds spread around in their own machines.
The AI also helps folks do queries without having to explore the schema for a while.