The description of Azure SQL Database pricing is available at https://azure.microsoft.com/en-us/pricing/details/azure-sql-database/single/
You pay for not only compute but also storage. Compute is pre-allocated - so you pay for it whether you use the database or not - unless you use the serverless tier
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin