Without definitions of all the tables involved, as well as knowing what version you are running this query on, it is impossible to explain why.
https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.0Read the section named "Join Removal".
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных