Default Magento does not allow to get Magento 2 attribute & attribute options. If sometimes you need to get the attribute & attribute options to set somewhere, you can get the values by custom coding it.
Attachment 13282
To learn how to get Magento 2 attribute & attribute options programmatically, refer https://meetanshi.com/blog/get-magen...grammatically/