Having the ability to set and get local storage would be necessary to creating applications with sessions or other globally persisted data.
For example, a login mutation would store a JWT token that would later be used by an authorized mutation or query by adding the token to the Authorization Header.