There are three major reasons. Firstly, a leash keeps your body stay connected to your board in any unexpected water conditions. Secondly, a leash helps you get back on your board easily which serves as a floatation raft in emergencies. Thirdly, the leash help avoid injuring other surfers if you lose control of your board.
(Click to Expand)