Vietnamese doesn't conjugate verbs and it doesn't have a clean equivalent of the English passive ("was hit", "is being built"). What it has instead is far more expressive: two markers that drop in front of the verb and color the whole sentence with feeling.
Được means the subject got something good out of this action.
Bị means the subject got something bad out of this action.