In this ayaah Allah is telling us a story. The story of a people who were given the book. Allah tells us that they had some sort of relationship with the book they were given. They may have read it beautifully, memorized it, celebrated it etc. but as soon as it came to this book making decisions for them, deciding right and wrong for them, they turned away.