Chickens are much better at flying up onto something than they are at flying over things.
I have a 40” electric net fence. Mostly they stay inside. But they routinely fly up onto roosts and branches that are higher than that.
A flimsy top is off putting to them.