Postgres image multiple python versions

Why does the postgres docker image have multiple versions of python installed? Is there any feature loss by removing python 2.7?

$ docker run -it postgres:10.8 /bin/bash
root@64101c7ee3cd:/# dpkg -l | grep python
ii dh-python 2.20170125 all Debian helper tools for packaging Python libraries and applications
ii libpython2.7:amd64 2.7.13-2+deb9u3 amd64 Shared Python runtime library (version 2.7)
ii libpython2.7-minimal:amd64 2.7.13-2+deb9u3 amd64 Minimal subset of the Python language (version 2.7)
ii libpython2.7-stdlib:amd64 2.7.13-2+deb9u3 amd64 Interactive high-level object-oriented language (standard library, version 2.7)
ii libpython3-stdlib:amd64 3.5.3-1 amd64 interactive high-level object-oriented language (default python3 version)
ii libpython3.5-minimal:amd64 3.5.3-1+deb9u1 amd64 Minimal subset of the Python language (version 3.5)
ii libpython3.5-stdlib:amd64 3.5.3-1+deb9u1 amd64 Interactive high-level object-oriented language (standard library, version 3.5)
ii python3 3.5.3-1 amd64 interactive high-level object-oriented language (default python3 version)
ii python3-minimal 3.5.3-1 amd64 minimal subset of the Python language (default python3 version)
ii python3.5 3.5.3-1+deb9u1 amd64 Interactive high-level object-oriented language (version 3.5)
ii python3.5-minimal 3.5.3-1+deb9u1 amd64 Minimal subset of the Python language (version 3.5)

Hello!
In my case install postgres with alpine os but Did’t find python any version.
One more Thing Python With postgres it’s Not any dependency Both are separate.
So you can Remove python Which version you was Not required.
But debian os in default Installed python 2.7.