AI helps in creating immersive and personalized experiences in virtual and augmented reality by tailoring interactions and environments to individual users, expanding the potential of these technologies.