The "grid" refers to the electricity grid, so dropping off the grid literally means disconnecting from the power grid. People who do this tend to be moving away from urban life into the wilderness. By extension, the phrase means cutting oneself off from society, going somewhere else to start a new life, disappearing or even hiding (from the police, for example).