Why Do Locomotives Need to Sound Their Horns? Since their inception, railroads have sounded locomotive horns or whistles in advance of grade crossings and under other circumstances as a universal safety precaution. During the 20th century, nearly every state in the nation enacted laws requiring railroads to do so.