How do resource attributes work?

It says " Resource attributes can be used to provide additional information about a resource and to provide additional information to policies when evaluating permissions associated with a resource."

Well, but how?