Why can’t you ground your club in a bunker?

I am just curious as to why this rule was created. Was there ever a time when a golfer could not ground his club in a bunker for some reason? Or has it been a part of the guidelines for all time?

Golfers have long faced strict rules about grounding their clubs in bunkers, a practice that dates back to the origins of the game. Historically, the rule against grounding the club in a bunker was established to maintain the challenge of playing from sand hazards. The idea was to prevent players from gaining an unfair advantage by altering the sand’s condition, ensuring skillful play under difficult circumstances. This rule has been a part of the game for many decades, evolving as the sport formalized its regulations. The purpose is to uphold the game’s integrity, making sure that overcoming bunker challenges remains a true test of a golfer’s ability.

would facilitate greater ball contact by making it simple to clear the sand right behind the ball.

Sand traps are meant to be dangerous. You could not ground your club in what are now known as “penalty areas” before to the alteration that occurred a few years ago.