They fuel each other
Therefore, they often appear together by the time treatment is sought. But they are not one & the same.
Anxiety is draining, it wears us down. Depression may result in part because of prolonged diminished "energy"/spirit. Preexisting depression weakens us, makes us feel vulnerable & life becomes uncertain & scary -often predisposing to anxiety.