Milling around

Milling around -- does anyone know the origin of this phrase? What does aimlessly hanging about have to do with grinding grain?

Replies