Piers saw no reason to withhold his phone number from James. After all, the guy was proving to be good company and Piers was enjoying his 'social time' with the guy. So, he told James his phone number, as they continued their walk. He wasn't really too worried, for some reason.
Getting to the store, he held the door open for James. "After you," he said, before he entered after the guy.