From Classrooms to Chatbots: Exploring Generative AI in Education