Topological origin of quasi-flat edge band in phosphorene