It could be due to incorrectly measuring your chocolate-to-cream ratio or using low-fat content cream and low-quality chocolate. The ganache also might not have been given enough time in the fridge to set.