Both Massachusetts and Pennsylvania were settled by religious separatists from England. The various Massachusetts plantations that later became a unified colony were settled earlier than Pennsylvania and by Puritan groups which did not endorse religious freedom. Instead, the Puritans consciously imposed their form of faith and worship on all inhabitants of their colony and persecuted those who pursued a different path.
In contrast, Pennsylvania was founded by a Quaker, William Penn, who insisted on religious freedom in the colony, opening it to settlement by persecuted religious groups other than Quakers. These included Swiss and German anabaptists sects. This changed the flavor of the colony by infusing it with a variety of cultural and ethnic groups.
Penn, following the Quaker peace testimony, also pursued peaceful relations and reconciliation with Native American groups in the colony. This led to a less bloody and antagonistic history—at least initially—between colonists and natives than was the case in Massachusetts.
Pennsylvania was more amenable to farming than Massachusetts, which relied more on fishing and trade to generate wealth. Both, however, became wealthy colonies, and their major cities, such as Philadelphia and Boston, were centers of colonial power.
Pennsylvania's example of toleration of diverse religious groups had a longer lasting impact on the American way of life than the Puritan theocracy, for the United States early on embraced the ideal (if not always the reality) of religious freedom.