Benefits of batting cages
The average velocity of a fastball is over 90mph. This means when the ball is thrown from less that 60 ft. away, the hitter has 150 milliseconds to decide to swing or not. Once they've decided, the ball is only in the hitting zone for less than 10 milliseconds.
Hitting a round ball with a round bat squarely is another challenge. Getting two curved objects to connect in just the right way is extremely difficult, because if you're off even a smidge it could equal a foul ball or easy out.
If we imagine the bat like a target the bullseye is only one-fifth an inch and hitting it exactly will result in a home run. But the ring outside of the bullseye means a ground ball back to the pitcher. This margin of error for contact is half the width of your phones sim card.