The Little Prince could be seen as the childhood form of the pilot who crashes in the desert because both share the same childlike understanding of life. When the pilot, for example, shows the Little Prince his drawing of the boa constrictor who has swallowed the elephant, the Prince immediately can perceive what it is. In contrast, when the pilot goes to parties among adults and shows them the same picture of the boa constrictor, they all identify it as a hat. They lack a child's imaginative ability to see beneath the surface reality of things and find the deeper, richer meanings in life.
Like the pilot, the Little Prince has a child's vision and imagination. The pilot realizes that they are kindred spirits, in sympathy with one another.