You said: “..you mentioned in a post that bats changed their next birth by listening to Nobles recite Dhamma in a cave.”
Bats or any animal cannot learn Dhamma. What happens in such situations is the following.
Any living being has both good and bad kamma vipaka waiting to come to fruition, under suitable conditions. Kamma beeja work just like normal seeds. We know that seeds can be kept for thousands of years without germinating. But if those seeds are given suitable conditions (put in soil and provide water, sun light and nutrients) and they will then germinate.
In the same way, those bats had good kamma vipaka (to gain human birth) from the past lives. When they were listening to those Dhamma recitals, their minds got calmed down (not by understanding Dhamma, but by the soothing tone), and those good kamma vipaka were able to come to their minds at their dying moment (apparently something happened for all of them to die while listening to those chantings). So, they were all born human due to those “old” kamma vipaka.
Buddha Dhamma is deep and has many facets. It will take time to understand various subtle points. Life is very complex.