Why did baseball come from rounders?

American baseball was derived from both rounders and cricket, which are both traditional British bat-and-ball games. In rounders, which was often played in town squares, stakes were driven into the ground to act as bases. During the late 1800s, people replaced the stakes with bases, and began to refer to it as "townsball." This eventually morphed into "baseball," and set guidelines of rules and regulations were set in writing in 1845.