I use it if treating freshwater fish for ich. It is NaCl, which is salt, and because it is used for softening water, safe for human consumption, safe for fish.
Good logic here. Makes sense to me.
Another option is epsom salt found in the first aid section of any grocery store. $3 for a gallon size bag. WAY cheaper than using "aquarium salt" and i've had more success with it.