It is; it's just that there are 2 buckets, one for this a master's degree or higher from a US school and another for everyone else. What this means in practical terms is that you will have a much higher chance of getting selected in the lottery than someone without a master's degree or higher from a US school. Also, as I'm sure you know, you might qualify for a TN, which is not subject to a lottery.
I have a master's degree or higher from a US school. When I applied for an H1-B a few years ago, my employer's immigration lawyers decided not to submit applications under the master's cap, since my degree was unrelated to my position.
Are there potential issues if the master's degree is unrelated to the position? I have a related undergraduate degree.