Preheat the oven to 190°C and grease a 20 x 20 centimeter baking dish with the butter.
Heat the olive oil in a large skillet over medium heat. Add the sliced mushrooms and chopped onion, then cook for 8 to 10 minutes, stirring occasionally, until the mushrooms release their moisture and begin to brown and the onion softens.
Add the minced garlic to the skillet and cook for 1 minute more, stirring constantly so the garlic becomes fragrant without browning. Remove the skillet from the heat and let the mixture cool for 5 minutes.
In a large mixing bowl, whisk the eggs until fully blended. Add the cottage cheese, whole milk, shredded cheddar, Parmesan, salt, black pepper, dried thyme, and baking powder, then whisk again until evenly combined.
Fold the slightly cooled mushroom and onion mixture into the egg mixture, stirring until the vegetables are well distributed throughout the batter.
Pour the mixture into the prepared baking dish and spread it into an even layer. Tap the dish lightly on the counter once or twice to settle the mixture.
Bake for 35 to 40 minutes, until the center is set, the top is lightly golden, and a knife inserted near the middle comes out mostly clean.
Remove the casserole from the oven and let it rest for 5 minutes before slicing. Sprinkle with the chopped fresh parsley and serve warm.