Of course it’s a work. However, it isn’t a “good” work unless it’s done in faith (remember Romans 14:23, “… For all that is not of faith is sin.”). When I was baptized as a child, I had no faith in God, Jesus, or anything else. How can I be credited with doing a good work? However, once I received faith from God, I was able to discern that I needed to be baptized properly (through my own faith in Jesus Christ), which is what I did. If not for faith, I would never have been able to do anything pleasing to God (“But without faith it is impossible to please God. For he that cometh to God, must believe that he is, and is a rewarder to them that seek him.” Heb 11:6 DR). Can you show me a place where works are commended and faith is absent?