Perhaps you will feel that the two songs are somewhat similar, which may be due to the subjectivity of human auditory perception and the commonality of music. Nevertheless, the similarities between the two songs may be attributed more to the universality of human emotions than to specific musical elements.
If you think these two songs are similar in style, it may be because they both express some commonalities of human emotions, such as loneliness and self-reflection. This may also be the reason why these two songs can resonate with the audience on some emotional levels.