While racehorses may be aware of the other horses on the track, it's unlikely that they understand the concept of racing or competition in the same way that humans do. Racehorses are primarily motivated by their natural instincts and training to run fast, and their focus is typically on following the lead of the other horses and responding to the commands of their jockey.