Although salt is good for guppies, it is not necessary from my experience assuming the tank water's conditions are OK ofcourse.
Whenever a problem occurs in my aquarium, the first thing I do is measure the levels of ammonia, nitrite and nitrate as well as pH and hardness. Maybe you had a major ammonia spike which stressed the fish?