It is a ball wear indicator. But it only applies to the balls you purchase in the shop.

It turns red when the ball is nearing the end of its life. (You can get approximately 90-125 hits per ball depending on the ball durability rating (putts do not count as hits unless taken as a mulligan putt, then they count as 2 hits)).