Privately run, regularly scheduled bus services open to the public, called "jitneys," are already illegal in San Francisco.[1] Leap and similar services seem to be ignoring this law. They were banned in the 1970s as Muni's service degraded, to shield it from competition.
[1] http://missionlocal.org/2014/06/up-until-the-1970s-muni-had-...