When a ball hits a bat, the ball also has a short-term memory and sense in the forms of how the inter-molecular forces detect and respond to the event of getting too close to the molecules of the bat and react with a repelling force. A more evolved form would be your consciousness.
Further, a lot of living things on earth might not have self-awareness.
...What? If a human brain can, that's quite literally proof a machine can? We are made out of matter that obeys the laws of physics.
And we have never made a machine remotely complicated enough to mimick a human brain. LLMs are the closest we've ever come, and they're not even close. Nor are the even made in a way condusive to doing so (focused on generating requested output, not postulating randomly). So as to the mechanical machine specifically, nothing exists to even be capable of being observed to make such a claim!