Docker is not meant only for building and deploying containers. In fact, I would hazard a guess, it, and especially docker compose is much more commonly used in dev environments.
It is a huge help to get an identical environment to develop on. Especially when you have more complex apps with different services.