Pastry chefs have been making rectangular shaped tarts for hundreds of years. But mostly they haven't used a pan. they make them rather free form. Actually, the presentation of the long rectangle is very impressive.
However, a few years ago, most restaurants went to individual servings, and the rectangular tart went bye-bye.