It does not run for two variables. It runs separate analyses for each level of the variable sex. Since sex has two levels: M and F, you see two separate analyses in your output.
Similarly, the species variable in sashelp.iris has three levels, so the below code returns tree levels of analysis
proc univariate data = sashelp.iris;
class species;
var sepallength;
run;