Dunno how it happened, but the OED has a citation from 1682 in the sense subject to the possibility of (doing or undergoing something undesirable. From there to a sense without the undesirablity isn't much of a leap.