The battery makes it. The elements that are assembled to make the battery produce the electricity as they react to each other. The reaction doesn’t start until the posts are connected by something that will allow the negative electrons to flow out to the positively charged side of the battery.