Figure skating originated in the 19th century and was initially practiced as a form of transportation on frozen water bodies. It gradually evolved into a recreational activity and later transformed into a competitive sport .