When and where the gymnastic from?

Gymnastics first came into the Olympics in 1928 in Amsterdam. I got this information from the book, Introduction to Women's Gymnastics, by Blanche Jessen Drury and Andrea Bodo Schmid. I'm not sure where the practice started or anything though.