Most animals shed at certain lengths. It’s only through selective breeding that we’ve removed that trait from certain species. There are lots of species of wild sheep for example that do not need to be sheared. We built the dependency on us to be sheared so that we could use them for wool.
In humans, it’s likely that we lost our tendency to shed through sexual selection and the ability to groom ourselves when desired.