The death of Uzzah had made David realize that the Lord is almighty and that he must be worshipped appropriately. It was expected that the king of Israel should learn to fear the Lord (Deuteronomy 17:18–19) and thus this is an appropriate and good response from David.1
9 David eut peur de l'Eternel en ce jour-là, et il dit: Comment l'arche de l'Eternel entrerait-elle chez moi?