Bike racks are designed to be secure and placed deliberately in your community to serve the needs of all. Locking illegally can be less secure and it might get impounded by the city or property owner.