It could be related to several factors, but the most common is either due to bacteria bloom or overfeeding. Try waiting several days or even a couple of weeks. Often, the water will fix itself if the cloudiness is bacteria-related because of a recent water change.