Usually they don't ask such questions in mathematics. Every mathematical contribution starts with "Consider such and such objects." If the first question is, "Why are we supposed to consider them?", we would not get far.

Why do you need this? The problem does not mention open and closed sets (in the sense of topology). Do you mean open and closed intervals?