that is because when god alone was called upon you disbelieved but when others were associated with him you believed. judgment rests with god the sublime the majestic.
ذلكم بأنه إذا دعي الله وحده كفرتم وإن يشرك به تؤمنوا فالحكم لله العلي الكبير