I'm one of four directors in a company with 25 employees. If one of my colleagues wanted to look for another job, I'd want to help them. That might be by making them happier in their current work, or it might be by helping them find another position in our company, or, as a last resort, helping them find a position they're happier with in another company.
Absolutely I'd want to keep them, but sometimes that's not possible. Even if they leave, I'd help them remain productive, plan their exit, and control the hand-over.
If finding another job is the path they'd take, I'd find a way to let people take calls and attend interviews. Obviously we'd discuss either longer hours to make up the time, or a reduction in pay, but we'd find a way to agree how it would work.
If you can't talk to your current boss, moving out is the best thing to do, but the least you can do it talk to them first and give them the chance to make things better, or help you transition to a job where you're happier.