It's called a level crossing in this case. The purpose of a level crossing is for safety of pedestrians and makes perfect sense. The only problem here is as the title says, that they didn't do it for the street as well. Nothing wrong with the one in the bikeway.
It's also an accessibility feature so people don't have to do the invariable up and down from kerbs into the road when using mobility aids or pushchairs with kids/shopping etc