Hi @Safi,
Thank you for reaching out to MS Q&A.
In Azure UI Storage Used metrics Shows the storage that's used by the service can include the database files, transaction logs, and the server logs and when you are checking size of disk usage by these databases it shows only data files and do not include transection logs. Server logs in Azure Postgres server are initially disabled by default.
As I See for my Azure Postgres DB where I haven't created anything, I See the Db size as per Azure UI Storage used
metrics initially 2.3 GB and now it's around 2.7 GB as per below image.

So, the difference is around 400 MB.
In Azure UI there is another metrics called Transaction Log Storage Used
which shows the Amount of storage space that's used by the transaction logs.
it is initially 112.7 MB and now it is 486.5 MB as you can see below:

from above we can see the difference is around 380 MB
As per above the difference between Storage Used and Transaction Log Storage Used is around same. so, in your case the difference you see in your size of disk usage by these databases and Storage Used in Azure UI is the space user by Transactional log and Server logs (if it is enabled).
https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-monitoring
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.