The Cosmic Hat is used for only one reason: Transforming The World into New Cosmic Luigi. It is a free item with a update and will probably turn unobtainable very soon.
Cosmic Hat.