A microscopic analysis of moments of inertia