Military AR rifles have a formal specification for the finish, which is an anodized finish over the aluminum, and with a mil-spec dry lubricant coating added.
Commercial rifles can have anything or nothing.
Most are anodized, but some are coated with various coatings from the paint type to the polymer coatings, all depending on what the manufacturer wants to use.
Some like Colt use the military specification finish and dry coat.