The best way of explaining it is, think about if you were in a lift in a building. You can get off at, say, floors 1,2, and 3. You can't get off at floor 1.5 or 2.5 or anywhere in-between floors 1,2 and 3. They are the discrete values. The same concept applies to energy levels.