/gmroll is most commonly used for the GM to make private rolls (things. This could be for things happening outside of the PC's awareness such as NPCs setting up an ambush, and inrandom encounters, etc. In some cases, player rolls for stealth or perception might be made by the GM so that players don't know how well they rolled outside ofuntil the GM's description ofGM describes the result (this can often be used to prevent meta-gaming, though this is not universalbut can also increase the suspense and immersion), though it canthis is likely more rare than allowing the characters to make their own rolls in these circumstances.
It can be used for situations where there is a need for a player's roll to be kept private - such as PvP actions (one PC is pick-pocketing another PC) or when the party is split and it is desired to keep their activities hidden from the other players. But during normal play, for most gaming systems (D&D 5E included), player rolls are usually made publicly.
Just look at the analog P&P experience, where only the GM has a privacy screen. In this scenario the players really have no easy way of making private rolls, and the flow of the game reflects, even when transitioned to online tools, reflects this.