A Raspberry Pi “HAT” or Hardware Attached on Top is a simple upgrade component you can add to compatible models of Raspberry Pi computers to expand what they can do and make many different projects far easier than they were before.
Source : What Is a HAT for Raspberry Pi, and What Can You Do With One?