Paige Spiranac has revealed the main reason behind her revealing outfits on the golf course — and it goes back to when she was starting out in the game.

The golf influencer has become known for her non-traditional outfits on the course and has stirred debate about golf-course dress code with some of her more outlandish attire.

During an appearance on the Up and Adams Show with host Kay Adams, Spiranac shared that her attire originally was out of necessity.

“I was a competitive gymnast before I switched over to golf. And so, I was so comfortable being in leotards and when I started playing golf I didn’t have enough money to go out and buy a whole new golf-appropriate wardrobe,” Spiranac said.

“So I would often wear athletic wear that I just had in my closet and that was leggings and tank tops.

“That’s how I learned the game of golf on public golf courses where there wasn’t a strict dress code.”

View this post on Instagram

A post shared by Paige Spiranac (@_paige.renee)

The social-media sensation also encouraged those who may be intimidated by the “country club” atmosphere of some place to try out some public courses, where there’s not as much pressure.

“I think that a lot of people are scared to get into the game of golf because it can be very stuffy and it can be not very welcoming at times, Spiranac said.

“Because you’re so scared about ‘what am I wearing, what am I doing, am I gonna, you know, upset a member at a country club, or all of these things?

“You can go to a public golf course and, when I go, I see guys in cut-off jeans and tank tops and I’m wearing leggings.

“You can still respect the game and you can uphold the tradition of the game and it doesn’t have to be all about your wardrobe.”

Spiranac, who boasts more than 5.5 million followers across her social media platforms recently took part in the PGA Tour’s Creator Classic.

The nine-hole tournament took place ahead of the Tour Championship and featured 16 of the world’s top golf content creators.

While Spiranac was fretting about her game before the tournament, she finished a respectable ninth at 2-over par.