Every sport and every game has rules to ensure a fair and safe game.
The possible injuries and dangers would be uncovered if every player behaved in a way that suited them. That is why golf also has clear rules and instructions on how to play and behave. Compliance with golf etiquette applies to all golfers and their companions on the practice facilities, the golf course and the club grounds. This also includes a traditional dress code which has not really changed since the early years of golf. However, the golf dress code is not binding and can be freely managed and monitored by each golf course.
Please inform yourself about the golf etiquette and regulations before entering a golf course.