It will be very relevant in any field that does performance testing. And that includes compilers.
Should you enable the optimizer change by default, or not? Or do you still need to collect more data? How much more data? What data - more runs or more different code samples? How confident do you want to be, and how confident can you be?
These are questions you will face in your real day to day work, and a few statistics courses will be incredibly helpful to you in answering them.