The diagram is only a handy guide and should not be taken too literally. The arrows help to understand what the total spin is but it doesn't provide any information on the component states of the system. The triplet state has a total spin of S = 1 and includes three microstates that have, respectively, ms = 1, 0, and -1.