They're just ways to react to posts with the click of a button. They don't really do anything. People get notifications when they get a post rating (unless they've turned those notifications off), so some people use the like rating partially as a way to let people know they've seen a post.
Mostly they're just silly and for fun though.