It has happened because of some harsh weather conditions, which has caused the snakes to be forced off track, and into unknown habitats.
The snakes are not usually found on these beaches, but instead, they are usually fond in warm tropical waters.
The fact that they have been washed away from their natural habitats, along with the harsh weather, may make them cranky, and therefore, can be more agressive. So, it's best people leave the snakes to professionals, or get in touch with wildlife professionals to help the snakes get back to their natural homes.