Yes, unfortunately working long hours is more valued than the actual output/work delivered.
This is the main thing wrong about the currently dominant work culture and also why the OP got such responses.
In this culture the evaluation method is:
Commitment and Worth = Sacrifices made (of your personal life & time)
While it actually should be:
Output delivered per every hour