Rnns are used in generative models to capture dependencies and generate sequences based on past information.