Media queries are useful when you want to modify your site or app depending on a device's general type (such as print vs. screen) or specific characteristics and parameters (such as screen resolution or browser viewport width).
At this time, it cannot be just explained via docs. So I suggest watching these videos to grasp the concepts.