If not secured and stored properly, a ladder may fall off.  To secure it, you need to install ladder brackets or a ladder rack into the wall, which is generally applicable when storing your ladder in a horizontal manner.  You can also place a lock to keep it steady and safe.