Back in 1976, the idea for Apple was born in Hewlett-Packard’s engineering lab.

Steve Wozniak, known to those around him as Woz, was happily employed in HP’s calculator division, where he was content to work for the rest of his career. Part of his satisfaction at HP almost certainly came from the fact that the company not only allowed, but actively encouraged, its employees to tinker on their own projects using its resources.

Woz’s after-hours project wasn’t a better calculator—it was the microcomputer known as Apple I, which would transform computing from a hobby for engineers into something anyone could use.

Being a loyal employee, Woz brought his design to his bosses at HP and encouraged them to develop it to something marketable. In fact, he tried five separate times to get them to adopt his idea, to no avail. It was only then that Woz and Steve Jobs teamed up to start Apple—and the rest is paradigm-shifting history.

No two ways about it, HP blew it. But the mistake was only that they didn’t recognize the value of Woz’s creation. (“You win some, you lose some,” HP co-founder Bill Hewlett reportedly said in response to what is generally agreed to be a mighty big fumble).

Running a company means hiring creative, ambitious people—and people like that tend to want to pursue big ideas that don’t always fit neatly into their job description. The smartest founders recognize that instinct and encourage it to grow. Here’s why.

Everyone Is (Side) Hustling

The truth is, side hustles are booming. According to new data from ZipRecruiter, more than a third of U.S. workers—35%—have a side hustle or multiple jobs, with high earners being the most likely to be doing supplemental work.

MORE FOR YOU

This runs contrary to conventional wisdom, which is that side hustlers are holding down multiple jobs to make ends meet. While that’s certainly true for some people, ZipRecruiter found that those who make more than $150,000 a year are the most likely group to be moonlighting on the side.

I understand the impulse as well as anyone—I started my business as a side hustle. In fact, the original product—an intuitive form builder—was designed to make me better and more effective at my job as a coder at a media company. And it worked. Yes, I ultimately left my full time job to pursue my startup, but it was only after I realized I had built something that could save people serious time—including my then-employers.

The truth is, most employees aren’t burning the midnight oil because they want out of their full-time gigs. The majority are doing it because they have passions and interests that don’t line up perfectly with their job descriptions. And that’s okay.

Why Leaders Should Encourage Side Hustles

HP may have made the wrong calculation when it came to Wozniak’s microcomputer, but they were right about one thing: allowing their employees to tinker on their own projects using company tools would make them better at their jobs. The same qualities that make someone a great employee—curiosity, drive, work ethic— are the same qualities that fuel a side hustle. You can’t selectively hire for one and penalize the other.

I’ll never forget how terrified I was to tell my boss at the media company that I was leaving. I’d been there for five years, and I was ready to make the leap. Still, I worried. Would he feel betrayed? Let down? Blindsided?

Ultimately, he was none of those things. In fact, he encouraged me. I’ve thought about that moment many times since, especially as Jotform has grown and I’ve found myself on the other side of that conversation. The leaders who are generous with their people’s ambitions tend to get that generosity back. It also taught me that the best thing you can do for a driven employee is to open the door.

Other leaders have arrived at the same conclusion. Some businesses have even taken the extra step of writing the freedom to have a side business into employees’ contracts, reports CNBC. Simon Paine, who runs a business school for budding entrepreneurs, tells the network that executives should keep an open mind.

“Recognize that having an employee with a growth mindset who’s got the excitement and energy for making something, you’re probably going to lose that employee in any case, if you don’t give them the opportunity to develop in this way,” he said.

I agree. Employees who run their own businesses are adept at enduring struggles, overcoming obstacles and solving challenging problems. The sharper those skills are, the better. How they learn them doesn’t matter.

Side Hustles In Practice

Of course, there needs to be a line. If an employee is working on their own idea during hours they should be working for you, that’s a problem. Even so, research from SHRM found that the majority of the time, employee retention isn’t negatively affected by side gigs.

Ultimately, an engaged employee with an after-hours project is almost always more valuable than a disengaged one without one. Stay curious and keep an open mind—and most importantly, if an employee comes to you with the next big thing in computing, listen to them.