According to the Bibliotheca, Athena visited the smith-god Hephaestus to request some weapons, but Hephaestus was so overcome by desire that he tried to seduce her in his workshop.
An alternative version of the story is that Athena left the box with the daughters of Cecrops while she went to fetch a limestone mountain from the Pallene peninsula to use in the Acropolis.