The reason for this is because many machines have a set path and range of motion. Because not everyone's body is made the same, this can cause problems down the line since the movements are not natural. You are also recruiting less of the smaller muscles in your body that help with stability and balance, while only developing the larger/dominant muscles. I believe that to truly be strong you must train all your muscles to work effectively as one system.
Obviously limitations from injuries are extremely specific to the individual, so your issues may legitimately cause some barbell lifts (particularly bench presses) to be a bad idea. But I do also personally know of a lot of anecdotal evidence that points to freeweight exercise reducing the impact of people's injuries: e.g., knee pain from squats in a smith machine disappearing when performed in a power rack.
This is one of the main reasons I've stuck with the machines. I have a rotator cuff issue in my left arm that makes that arm very unstable. Lifting heavy things with that arm without any support makes me very nervous, even after doing PT exercises for 4 months.