On the other hand, there's a lot that's more inflexible than in a SWE job: lecture times, university-dictated exam times (at night! I had to sleeptrain my toddler to make them), staff meeting times (hard to find a time that works for a staff of 50-100).
So yeah- more flexible in some ways, less flexible in others, it depends what sort of flexibility you're looking for.