CSS frameworks or libraries are intended to solve the same problems as any programming library - to make certain tasks easier, and to standardise repetitive work. They grew from various front end developers realising they were doing the same cross browser resets and layout setups over and over again, who refined these standard parts of their processes and released them publicly.