Snakes and Snake worship, primarily the cobra and associated sub species of snakes have been revered from ancient times all over India.
The Nairs of Kerala claim to be Kshatriyas of Nagavanshi descent, thus maybe snake worship was popularized and bough tot wider practise by them.