I always do this after getting a rejection. They always give something vague like "you're awesome but too junior for us". A good time to request it is when they ask you to fill in a feedback survey.
You can trace back a one sentence comment to the actual root cause. It's like debugging. And from that, you spot the pattern and optimize.