The treadmill may be a popular exercise machine today, but it was actually developed as a form of punishment for prisoners in the early 1800s.