Pretty sure the griffin must have been carrying the cart through the air when it spied Geralt and decided to drop it and attack him instead.