It uses round towards even or "Banker’s Rounding" or "Gaussian rounding" which is specified in IEEE 754 as the default. Any language following the standard will use such rounding. Mathematically speaking, it’s because it prevents positive/negative bias
and gives more intuitive results over large distributions of numbers.