They are not picked for looks, but for ability. The stresses of flying a high-performance aircraft do mean that the pilot has to be physically fit. That can contribute to a good appearance. The public perception that they are all handsome is probably due to movie portrayals.