Seabirds and reptiles like lizards have a salt gland that allows them to handle high concentrations of salt. Salt baths are also used by pet owners to help clean the skin of reptiles and get rid of deep-seated parasites and bacteria.
Insects and other food sources of lizards also contain salt in them which means it is safe for them.