Answer. Because these days were once, when the Temple and the High Court in Jerusalem existed, held holy by the whole nation and consecrated to occupation with God, we may not profane them now either; and among us they therefore have equal holiness and importance with the first and seventh days. For at that time the institution of this double celebration was extremely necessary, for the following reasons. The reckoning of time can be made either by solar years, that is, by the time in which the earth completes its course around the sun --- thus a year of 365¼ days; or by lunar years, that is, by the time in which the moon completes its course around the earth twelve times --- thus a year of about 354 days 8⅘ hours. Now we Israelites are, by the will of God, to fix all our festivals by the lunar year, and that not by calculation alone, but, besides calculation, also by observation. Thus the High Court in Jerusalem had to fix the first day of the month each time the moon, having completed its course around the earth, came into view again (מולד הלבנה).
Since, however, the members of this High Court could not always observe the course of the moon in Jerusalem themselves, they sent out pious and trustworthy men to make these observations precisely. These men then appeared before the High Court, by which they were strictly examined; and once their testimony had been found correct, the High Court fixed the first day of the month. The Israelites who lived in and around Jerusalem thus soon learned, through messengers whom the High Court sent out for this purpose, which day had been fixed as the first, so that they could celebrate the festivals accordingly. But the Israelites at a distance, whom the messengers could reach only late, remained uncertain whether, for example, the first of Nisan had been fixed on the thirtieth or on the thirty-first of the past month, and thus whether the Pesach festival was to be celebrated a day earlier or later. So that they should not miss the true festival day, they had to celebrate two days.
Now, although this arrangement of the calendar (קדוש החדש) ceased with the destruction of the Temple and the abolition of the High Court, and we calculate our months according to the laws of astronomy and fix our festivals by them, so that it would accordingly be sufficient for us to celebrate only one day --- nevertheless, because these days were once appointed by all our fellow believers for holy occupations, we cannot profane them.
חדשי השנה הם חדשי הלבנה שנאמר עלת חדש בחדשו ונאמר החדש הזה לכם ראש חדשים כך אמרו חכמים הראה לו הקב״ה למשה במראה הנבואה דמות לבנה ואמר לו כזה ראה וקדש והשנים שאנו מחשבים הם שני החמה שנאמר שמר את חדש האבי׳. מצות עשה מן התורה על הב״ד שיחשבו וידעו אם יראה הירח או לא יראה ושידרשו את העדים עד שיקדשו את החדש וישלחו ויודיעו שאר העם באיזה יום הוא ר״ח כדי שידעו באיזה יום הן המועדות שנאמר אשר תקראו אותם מקראי קדש ונאמר ושמרת את החקה הזאת למועדה. הלבנה נסתרת בכל חדש ואינה נראית כמו ב׳ ימים או פחות או יותר מעט כמו יום אחד קודם שתדבק בשמש בסוף החדש וכמו יום אחד אחר שתדבק בשמ׳ ותראה במערב בערב ובלי׳ שתראה במערב אח׳ שנסתרת היא תחלת החדש ומונין מאותו היום תשעה ועשרי׳ יום ואם יראה הירח ליל שלשים יהיה יום שלשים ראש החדש ואם לא יראה ראש החדש יום אחד ושלשים ויהיה יום שלשים מחדש שעבר. --- על ו׳ חדשים היו שלוחי׳ יוצאין על ניסן מפני הפסח ועל אב מפני התענית ועל אלול מפני ר״ה ועל תשרי מפני המועדות ועל כסליו מפני חנוכה ועל אדר מפני הפורים --- כל מקום שהיו השלוחים מגיעין היו עושין את המועדות י״ט אחד ככתוב בתורה ובמקומות הרחוקי׳ שאין השלוחים מגיעין אליה׳ היו עושין ב׳ ימים מפני הספק לפי שאינם יודעי׳ יום שקבעו בו ב״ד את החדש אי זה יום הוא. כל שאמרנו מקביעות ראש חדש על הראיה אין עושין אותו אלא סנהדרין שבארץ ישראל וכו׳ שכך נאמר למשה ולאהרן החדש הזה לכם ראש חדשים ומפי השמועה למדו איש מפי איש ממשה רבינו שכך הוא פירוש הדבר עדות זו מסורה לכם וכל העומד אחריכם במקומכם אבל בזמן שאין שם סנהדרי׳ בארץ ישראל אין קובעין חדשים אלא בחשבון זה שאנו מחשבין בו היום. בזמן הזה שאין שם סנהדרין וב״ד של ארץ ישראל קובעין על חשבון זה היה מן הדין שיהיו בכל המקומות עושין יום אחד בלבד אפיל׳ המקומות הרחוקות שבחוצ׳ לארץ כמו בני ארץ ישראל שהכל על חשבון אחד סומכין וקובעין אבל תקנת חכמים היא שיזהרו במנהג אבותיהם שבידיהם.
Maimon. Hilchoth. Kidusch hachodesch 1, 3, 4, 5.
[The months of the year are lunar months, as it is said: "the burnt-offering of the new moon in its month" [Num. 28:14], and it is said: "This month shall be for you the beginning of months" [Exod. 12:2]. Thus the sages said: the Holy One, blessed be He, showed Moses in a prophetic vision the figure of the moon and said to him, "See it thus, and sanctify it." And the years that we reckon are solar years, as it is said: "Keep the month of spring" [Deut. 16:1]. It is a positive commandment of the Torah upon the court to calculate and to know whether the moon will be seen or not; to examine the witnesses until they sanctify the month; and to send out and inform the rest of the people on which day the new moon falls, so that they may know on which days the festivals fall, as it is said: "which you shall proclaim as holy convocations" [Lev. 23:2], and it is said: "You shall keep this ordinance at its appointed time" [Exod. 13:10]. The moon is hidden every month and is not seen for about two days, a little less or a little more: about one day before it conjoins with the sun at the end of the month, and about one day after it conjoins with the sun; and then it is seen in the west in the evening. The night on which it is seen in the west after having been hidden is the beginning of the month, and from that day one counts twenty-nine days. If the moon is seen on the night of the thirtieth, the thirtieth day is the new moon; if it is not seen, the new moon is the thirty-first day, and the thirtieth day belongs to the past month. --- For six months the messengers went out: for Nisan because of Passover, for Av because of the fast, for Elul because of the New Year, for Tishri because of the festivals, for Kislev because of Hanukkah, and for Adar because of Purim. --- Every place the messengers reached kept the festivals as one festival day, as is written in the Torah; and in the distant places which the messengers did not reach, they kept two days because of the doubt, since they did not know which day the court had fixed as the beginning of the month. Everything we have said about fixing the new moon by sighting is done only by the Sanhedrin in the Land of Israel, etc., for thus it was said to Moses and Aaron: "This month shall be for you the beginning of months"; and by oral tradition they learned, one man from another back to Moses our teacher, that this is the meaning of the matter: this testimony is entrusted to you and to all who stand after you in your place. But at a time when there is no Sanhedrin in the Land of Israel, the months are fixed only by this calculation that we use today. In this time, when there is no Sanhedrin and the court of the Land of Israel fixes [the months] by this calculation, by strict law every place should keep only one day, even the distant places outside the Land, just like the people of the Land of Israel, since all rely on one and the same calculation in fixing [the calendar]; but it is an enactment of the sages that they should take care to keep the custom of their fathers that is in their hands.]
Maimonides, Laws of the Sanctification of the New Moon 1:1, 1:7, 1:3; 3:8--11; 5:1, 5:5 (excerpts)
יום טוב שני אע״פ שהוא מדברי סופרים כל דבר שאסור בראשון אסור בשני וכל המחלל י״ט שני ואפילו של ר״ה בין בדבר שהוא משום שבות בין במלאכה בין שיצא חוץ לתחום וכו׳.
Maim. Hilchoth, Jom tob. 1, 22.
[The second festival day, although it is by the words of the scribes --- everything that is forbidden on the first is forbidden on the second; and whoever profanes the second festival day, even that of the New Year, whether in a matter forbidden as a rabbinic rest-prohibition (שבות), or by work, or by going beyond the Sabbath limit, etc.]
Maimonides, Laws of Festival Rest 1:22