I've been on mountain peaks on nice summer days when storms appear as out of nowhere (not the typical afternoon rains), and there's lightning, high winds, and 50ºF temperature swings. In that kind of situation, things can turn very dangerous very quickly. Stuff that you take for granted suddenly isn't true any more: some rock which is rough and gives great traction suddenly gets slippery, winds that come from a prevailing direction suddenly come from somewhere else and the formerly sheltered areas aren't any more, clouds and fogs may come in and visibility may drop to zero.
A common trap is slot canyons in the southwest desert in the summer, when it's hot and dry, and hikers don't know about the rains in the distant mountains.
It's easy to turn your back on the ocean, which isn't forgiving. Large waves can happen when least expected.