The relations worsen since Poland joined NATO. Putin's answer was an import ban imposed on Polish food and later he decided to transfer gas to Germany around Poland (Nord Stream)
Nord Stream is a direct route from Russia to Germany (the largest consumer of Gasprom in Europe, if I'm not mistaken). This was a logical and reasonable decision whether Poland joined NATO or not. Personally, I think it was primarily because of Ukraine stealing Russian gas now and then.