蜃 was a giant clam, or in some accounts a sea dragon, said to breathe out vapour in the shape of towers and walls, so a mirage was "clam vapour". The 《
史记·
天官书》 already records
海旁蜃气象楼台 "by the sea, clam vapour takes the shape of towers", and the same belief gives
海市蜃楼, the usual word for a mirage today.