Google docs is known as an online document processor that lives in the cloud. That means you need to be online to use the internet. This helps with real time saving and back up to the cloud.
But they also considered internet time outs and black outs. So they added a feature that allows you to use Google docs offline.
If you prefer watching the video for this here you go: Offline Google docs