Their desire was to lay the gifts at the feet of Jesus, and to worship Him. These gifts had significance. Gold is the gift for a king. The custom was that no one could ever approach a king without bringing a gift. Gold, king of metals, was the perfect gift for the king of man.
Frankincense is the gift for a priest.
The function of a priest was to open the way to God for men. Jesus is the only way to the presence of God. Myrrh is the gift for one who is to die. One use of myrrh was to embalm the bodies of the dead. Jesus came into this world to live for men, and in the end, to die for men.