Can't say in all areas, but in SF, many , many sidewalks are owned by the developer and the building. You see funny little plaques in the sidewalk proclaiming it as private property and the right to restrict access. Can't say if that is a right the courts agree with but the signs are in a lot of sidewalks.
PS The cops were bigtime jerks.