The mystic interpretation of themes in poetry which were contrary to Islamic teachings became popular after the Safavid dynasty rise to power and the establishing of Twelver school of Shi'a Islam as the official religion of Iran.
Everything aside, Khayyam never identified himself as a Sufi nor did anyone in his time.