Why can't access rights be checked only in the interface?
A hidden button does not stop anyone from sending a request straight to the server, bypassing the interface. If the server does not check who is making the request and what they are allowed to do, a user can get someone else's data simply by changing a number in the address. That is why permissions are checked on the server for every action, including file downloads.
More in the guide to web application security.