No one really knows. It is a traditional Jewish symbol, but not the most ancient. The most ancient is the menorah.

The Star of David has been around for a very long time -- at least 1800 years, but no one really knows its origin (it isn't mentioned in Torah or Talmud).