Why is joining a church or getting baptized considered legalism?

These actions are seen as legalism because they are works-based attempts to achieve salvation.

Watch the Teaching: What “Fallen From Grace” Really Means — Galatians 5