Palpation mght detect the air in the stomach. He's probably going on your reported symptoms too. Did you tell him you have chest pain after eating?
You can ask the doctor how he figured it out.
In any case, most people get a hiatal hernia sometime as they get older. It's not a problem unless it's causing intolerable symptoms. Most people never know they have it.