This is due to the third law of motion i.e. law of action and reaction. This states that 'for every action there is always an equal and opposite reaction force'.
When Ravi throws a heavy stone out of boat, this is action force and the movement of boat in opposite direction is reaction force.