A straight wins versus 3 of a kind.
3 of a kind only beats two pair, one pair, and high card hands.