It originated from the points system within the Girl Guides younger troop, brownies, for doing good things and became a popular term in like the 50's or 60's. Brown nosing has a negative conotation to it but when you use "Brownie points" int means you are doing something good or desireable.
The more you know!