The database schema of an app is tightly coupled enough to essentially be code, and migrations are also probably checked in. This lets you see how the db schema changes over time -- likely along with the queries using the schema.
This is only true when your app is the only thing that is using the database. In enterprise environments, databases are frequently shared between many different apps.