At night, the air near the ground can have a different temperature than air only a few hundred feet above1. This affects the transmission of sound waves. There is usually less ambient noise after dark, so the distant train sounds louder. As pointed out elsewhere, maybe the trains don't use the horn in daytime.