That's not true at all... there is in fact an infinite subset of the rationals which is compact under the standard topology...
Consider the set {1, 1/2, 1/3, 1/4, ...} U {0}
This set is compact because any open set around 0 contains all but a finite number points in the set. I understand that...