It's usually because of preference. Most tend to go with red because it usually contrasts with the color of the house (sky blue, yellow, gray... lighter colors).
Second, many home magazines say to paint the front door a vibrant color... the color of the door should stand out from the rest of the house.