When I add a sheet or form in Visual DB a query is created automatically. What is the purpose of queries?
If you only have a few dozen records each with a handful of columns, a query is not adding any value.
But Visual DB is designed for large databases. When you have a massive table with tens of thousands of rows and dozens of columns, a query lets you isolate exactly what you need.
In a query you can unselect irrelevant columns and filter rows based on specific conditions (e.g., showing only active customers who live in California). Only those matching records and selected columns are sent to your browser, so it has less data to load and display.
Without a query Visual DB would have to bring all data to the browser, which is bad for performance.