SQL

Access denied sql server attach database

Access denied sql server attach database, someone asked me to explain?
SQL
I am using SQL Server 2019, when I tried to attach the database to the server I got this following error message "Access is denied". 
Then I right click on the file and select security and I grant the same file permissions as local admin group, then I can attach with no problems.

Post your comments / questions