It is a hat — a cosmetic head slot item in RuneScape. Like most purely decorative pieces, the fedora does not change your combat stats; it exists so your character can look a particular way.