Another way to say "a bat is used for hitting a ball" is "In baseball, people swing a bat to hit a ball."