This is standard practice. Most decent cyclists have cycling shoes that lock into bike pedals both in gyms and on their normal bikes. If someone doesn’t have cycling shoes, then gyms provide attachments that let you lock your sneakers onto the bike, but it’s a much worse cycling experience. “Lock” is a misleading word…