This policy dates back to the end of WW2 as an attempt to prevent one country getting too aggressive and hence starting another war.
Since the fall of the wall, Russia was seen as a legitimate trading partner for the block and, in the long term (just as Türkiye), as member of the block.
Hence sourcing fertiliser from Russia was taken to be a strategic positive since it tired Russia to Europe.