This was the Victorian era and people started traveling for recreation. Atlantic City, New Jersey was a popular spot. A rail line was laid in 1853. This caused confusion because there was a town called Magnolia near by. So, three months later, the station's name changed to Berlin.
Nobody knows why Berlin was chosen.
Today, the Lonaconing Trail is called Route 30, also known as The White Horse Pike. It is still a main route between Philadelphia and Atlantic City.