Though Atlantic City was founded with the idea of being a "health resort," its landowners were capitalists. They laid railroad from Camden (connected by ferry to Philadelphia) and the people of Philadelphia would dictate what they wanted from Atlantic City.
The wealthy, aristocratic Philadelphians were generally Quakers and espoused the moral philosophy. Maybe they went to Cape May, but the railroad was not built for them. Philadelphia had become a powerful industrial society by mid-1800s and spawned a large working class.
This working class were the cogs of the Industrial Revolution as Philadelphia became the nation's primary textile manufacturer, its factories powered by the abundant coal in Northeast Pennsylvania.