There are many libraries you may want, and libm is just one of them.
For each of these, you may ask why it isn't included by default.
Perhaps libm is more useful than others, but still, C prefers to keep things simple - you want a library, use -l to use it.