"Gran" comes from the Latin word "granum", meaning "grain". A granary is a building where grain is stored.