What is the purpose of rumble strips?

Rumble strips create noise and vibrations to warn drowsy or inattentive drivers that they are straying off of the road or are approaching a stop sign or signal.
DMV Writen Test