Because both I and V are major triads, the chord symbol is the root note.
For example in C major
In G major