React is considered a library rather than a framework because it provides a focused set of tools and functionalities for building user interfaces without imposing a strict structure. It provides a set of reusable components that can be used to build UIs in a flexible manner without prescribing application structure.