common livebearers are frequently kept in water with significant amounts of salt (NaCl, not marine); if you put them into regular water without shock, it could cause osmotic shock and far shortened lifespans.
How closely do your water parameters match those of the water where you purchase the fish?
How closely do your water parameters match those of the water where you purchase the fish?