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