The player needs to "discover" the weapon before it is available for purchase in the Gallery. This includes it being available for purchase in the armory, or it being obtainable in an event.
I just typed how to in my previous reply??? It just needs to be obtainable in a different method at the time the player is trying to purchase it from the Gallery.