I'm no historian, but they both have logical backgrounds. QWERTY keyboards were designed with Typewriters in mind. The layout of the keys had to be spaced so that the arms of the typewriter would not get jammed when typing fast. Nowadays we use it because we always have, and any other layout wouldn't offer a big enough boost in speed to qualify for the change, not to mention that QWERTY is a standard.
As for Clockwise...I'm not positive, but isn't that the way the old sundials "turned"? They just used what they were used to, as there's no good reason to make it go counter-clockwise.