Because they had no way of knowing what kind of weapons he had:
Officers were texting each other about the gunman who tried to assassinate Donald Trump 90 minutes before he opened fire, but none of them approached the gunman, new text messages reveal. https://t.co/oGmVF02Y6n