People will lie about being democratic to gain power with no intention of implementing democracy. People will lie about being socialist to gain power with no intention of implementing socialism. People lie. Yes, it’s that simple.
Marx was very clear that socialism requires worker ownership over the means of production via democracy. Workers did not own or control the means of production in the USSR. There was no democracy in the USSR. Therefore, the USSR was not socialist.