Treadmills were used as punishment for prisoners in the 1800s. They powered grain mills (hence the name treadmill) and pumped water.