The other answers are correct that articles are reviewed (moderated) by humans, but only about 15% are flagged for additional moderation checks which take more time, and this reasoning doesn't explain why "trusted users" who have submitted many papers to arXiv with absolutely zero problems, don't get a fast-track process.
The first time you ever submit to arXiv, someone has to "vouch" for your paper, which is a manual process that takes a lot of time. After that, the amount of time spent on moderating the articles is extremely minimal (I've been involved in the process in the past). One answer has said that articles submitted before 14:00 EST appear online at 20:00 the same working day, which means only 6 hours delay. Many articles are not even looked at, or barely looked at during those 6 hours, because the articles don't need to be "vouched" for. There's many tags such as "quantum physics" and "discrete mathematics", and the moderators on each tag will vary a bit in how strict they are in monitoring whether or not the papers are appropriate for the tags, but there's certainly some tags for which the papers are barely looked at.
So 6 hours seems reasonable for articles that need to be examined, usually because the user has very little history of submissions in the past, or because they are submitting from a hotamil email address rather than a princeton.edu email address (for example), but what about all those articles that are not really being examined much? I don't know if arXiv has made any public statement about the reason for the 6 hours in those cases, but I sure like the fact that the paper doesn't get published online immediately, because I do find myself wanting to make last-minute changes after a couple hours, so very much like the extra hours of leeway, but that's just me.