Why is hiring people so hard?

When I switched from medicine to software engineering I was really surprised by the interviewing process. During my first interview I answered all of the questions correctly, but the CEO did not want to hire me over concerns around: “How can a nurse be good at computers?”. Roll the clock forward and the same person did his very best to prevent me from leaving. With the best of intentions, the interviewing process is like speed dating.