They do when everyone else agrees. They call themselves socialist, other people call them socialist, and their policies match most definitions of socialism.
Tell me again why you think we shouldn't rightfully classify many European parties as socialist?