Because the gun wasn’t always concealed.
Open carry is generally legal. If he had a concealed carry permit, he was legal to buy carry concealed.
Why was he searched?