Behaviour defined in eagle when naming a gate like an orientation
How to do what you want is not undocumented at all:

help add



  The name parameter is the name which the element is to receive in the drawing. If the name could be interpreted as an orientation or option, it must be enclosed in single quotes