Topological origin of equatorial waves