Albert Camus wrote The Stranger during the Existentialist movement, which explains why the main character in the novel, Meursault, is characterized as detached and emotionless, two of the aspects of existentialism. In Meursault, Camus creates a character he intends his readers to relate to, because he creates characters placed in realistic situations. He wants the reader to form a changing, ambiguous opinion of Meursault. From what Meursault narrates to the reader in the novel, the reader can understand why he attempts to find order and understanding in a confused and mystifying world.
Hope this helps.