These are dice.
They are from Egypt but the exact location is unknown. Dice were used in Greek and Roman times, about 2,000 years ago, and may have been used in ancient Egypt about 4,000 years ago. The box could be used both for storing the dice and for shaking them when playing with them. These are dice. They are made from bone or ivory. We do not know how old they are.