The A ranked play has a higher score than the S ranked play, which is what osu! will display.
This is because the time that you get your 100s and 50s, especially on shorter maps, is extremely important. If you get more 100s and 50s later in the map your score is significantly reduced.