It was no accident that an NSFW joke ended up in “Frozen.”

Kristen Bell, who voices Princess Anna in the 2013 Disney animated film and its 2019 sequel, recently explained the story behind the double entendre that is in the song “For the First Time in Forever.”

Kristen Bell at the opening night of "Reefer Madness: The Musical" in May 2024


Kristen Bell at the opening night of “Reefer Madness: The Musical” in May 2024.WireImage
The 44-year-old actress did an interview with Vanity Fair where she watched the scene in “Frozen” where Anna sings, “For years I’ve roamed these empty halls / Why have a ballroom with no balls?”

“How did we get that joke in there?” Bell asked out loud in the video published Tuesday.

“We slid it under the radar,” she shared. “It almost didn’t make it in. But then we were like, ‘What are you talking about? That’s not what it means. Don’t be a perv.’”

Kristen Bell at the Citizens Of The World Charter Schools Gala in May 2023
Kristen Bell at the Citizens of the World Charter Schools Gala in May 2023.Getty Images
The “Nobody Wants This” star then explained how she always “dreamed” of being in a Disney animated movie before she was cast in “Frozen.”

“They’re so formidable in your life when you’re young and I was obsessed with them,” said Bell. “I remember sitting in my living room and on my little old boombox, like, recording myself singing ‘The Little Mermaid’ in case I ever needed that tape.”

Anna and Olaf in "Frozen 2"
Anna and Olaf in “Frozen 2.”null

Elsa, Anna, Kristoff, Olaf and Sven in "Frozen 2"

Elsa, Anna, Kristoff, Olaf and Sven in “Frozen 2.”null
“When I finally got the opportunity, I was thrilled,” the mom of two added.

Bell said that once she got the part of Princess Anna, she originally thought she’d “do anything” that Disney “asked me to.”

Anna (Kristen Bell), Olaf (Josh Gad) and Kristoff (Jonathan Groff) in "Frozen"
Anna (Kristen Bell), Olaf (Josh Gad) and Kristoff (Jonathan Groff) in “Frozen.”AP
“But what I should be valiantly striving for is to create a character that I really needed to see when I was 11 years old, which was someone like this character,” she explained. “Thankfully, they let me do it.”

Bell said she wanted her “Frozen” character to be the “opposite” of a traditional Disney princess.

Kristen Bell at THE GREAT. x Red Wing Heritage launch in August 2024
Kristen Bell at THE GREAT. & Red Wing Heritage launch in August 2024.Getty Images for for THE GREAT. x Red Wing Heritage Collaboration
“I want her to wake up with drool in her mouth. I want her to snore. I want her to talk too much and too fast and wear her heart on her sleeve and trip over things,” she said. “The real quirk for a girl who is lovable but not as put together, and thankfully this whole experience was really collaborative. Some of those things they wrote in, and others they didn’t and they let me kind of take the reins.”

Elsa, Anna and Kristoff
Elsa, Anna and Kristoff.AP
Both “Frozen” movies made over a billion dollars at the global box office. The franchise also stars Idina Menzel as Elsa, Jonathan Groff as Kristoff and Josh Gad as Olaf.