Physical mechanisms of the rogue wave phenomenon