Most shells are made from calcium. In a tank of water the calcium will slowly dissolve and alter the hardness of the water. If the creature in the shell were still alive it would replace the lost calcium compounds naturally, but because there's nothing there to do the replacement the shell disappears. One or two small shells in a large tank won't make too much difference but more than that and you could be inviting trouble. It is best avoided if possible.