The simplest explanation is that blue is the darkest of the primary colors (at full intensity, think 8/16-color palette) and hence has the best contrast on white or gray background (after black). It also helps that it isn’t a signalling color like red (important/error) and green (good/go).