My mental gymnastics here are that, while Finn was programmed from childhood to be a soldier, he was not isolated. He would have ample opportunity to read, learn about the wider galaxy, use the internet (holonet?), and talk with others. Plus, the specialization he had (sanitation worker) means he didn’t get a uniform…