Dummy variables are used in statistical modeling to represent categorical data as binary variables, allowing for the inclusion of qualitative factors in regression analyses. They enable the conversion of non-numeric data into a format that can be easily used in mathematical calculations, thus facilitating the analysis of the impact of categorical predictors on the dependent variable.