Well, there are several factors actually.
1. Did you see the fish eating at the store? If so then my guess is they are not used to their new surroundings yet. How did you acclimate them? They may not be used to the water quality yet.
2. If you did not see the fish eating at the store then...