meaning of "was done casually"

The court, however, criticised the police for its investigation, which it said, “was done casually.”

Please explain the bold group of words.

This means that the police were not interested, thorough or careful enough in the investigation.