Did they use gas chambers to kill people just anytime or a certain time?

Of course, they did it at the convenience of the NAZI officers. They didn't want to endure the late hours.

They did that so the family of the people could never be buried or actually have a place to go back to, to feel better.