Supper was originally a secondary lighter evening meal. The main meal of the day, called dinner, used to be served closer to what is known as lunchtime, around the middle of the day, but crept later over the centuries, mostly over the course of the 19th century. When dinner was still at the early time, eating a lighter supper in the evening was very common; it was not always the last meal of the day, as there might be a tea later. Reflecting the typical custom of 17th century elites, Louis XIV dined at noon, with a supper at 10p.m. Even when dinner was in the early evening, supper was served at a ball, or after returning from it, and might be after other evening excursions. At an English ball in 1791, supper was served to 140 guests at 1:00 a.m. They would all have had dinner at home many hours earlier, before coming out. Other, grander, balls served supper even later, up to 3:30 a.m., at a London ball given in 1811 by the Duchess of Bedford.
Read article on Wikipedia