The festival probably originated in India as a Hindu festival similar to Deepavali as thanksgiving to the deity of the Ganges with floating lanterns for giving life throughout the year. [wiki]