They worshipped the dragon because it had given authority to the beast. They also worshipped the beast, saying, "Who is like the beast, and who can fight a war with it?" 