Ex gratia has 3 different meanings across 1 category:
Adjective
as a favor; not compelled by legal right
"ex gratia payments made to nonstriking workers"
As a favour; given as a gift.