The reason for that is that the second sentence secretly has a different grouping of words:
„I [didn’t understand] [some of those things].“
„I didn’t [understand all of those things].“
What’s interesting about this is how just changing „some“ to „all“ caused my brain to change the grouping automatically. Is that true for your brain as well?