There is a logic underlying the market but it is an emotional logic programed in the old reptilian part of our brains. Crowd behavior, safety in numbers. Crowd psychology. A school of fish move in unison - who moves first?
And don't forget hindsight bias, markets are perfectly understandable...