Right, your portable battery pack can do that, because it’s new, and they eventually figured out how to make devices smart enough to do that. Eventually. They didn’t have that when USB was first invented. A portable battery pack from the early days of USB would have to have had two different sockets, one to charge the battery, and one to use the battery to charge other devices.