We use speed humps to encourage motorists to drive slowly and carefully.
There are many other traffic calming measures that are considered or used before speed humps, as there are strict guidelines around installing speed humps which are set by local, national, and other best practice guidelines.