It contains your name, surname, flight number and destination, departure time, and a few rhings that would be meaningless to most people. If your ID is checked or scanned at the airport, it is to make sure you are the person to whom that boarding pass was issued to, by checking your name/surname and photo.