As you know in 1939 both Germany and later the soviets marched into Poland, but why didn't the allies declare war on the soviets, because they also threaten polish independence.
This older answer might be of interest.