As with many ethnic groups, the endonym seems to just mean "person". The more interesting question is how other people started calling them "Gypsies"--it's actually a corruption of "Egyptian", based on a poor understanding of non-European geography.
fyi, you'll find more here