There are a few theories about why there are seven Chaos Emeralds. Seven may simply be a "magic" number—a low prime that avoids other symbolically loaded digits. Some suggest five could evoke a pentagram, three a triangle or "evil eye," and nine an inverted six for 666, so seven sidesteps all of that.
Another explanation is more colorful: there may be one emerald for each color of the rainbow, which also happens to total seven. Ultimately, though, it may not need a deeper reason at all—it is a fictional element, and seven just works well for the story.