The properties of a paragraph style are distributed among so-called "paragraph" and "style" areas. The styleProperties() method selects one property set at a time, according to the "area" optional parameter, whose value is either "paragraph" or "text". The default value of this parameter depends on the style family; with a paragraph style, the default area is "paragraph", so as long as styleProperties() is used without the "area" option it returns the paragraph property set.
Of course, styleProperties() must be called twice in the user needs to extract the two property sets.
See
styleProperties()