This should be no surprise — received chat messages are marked as read on Facebook if you wiggle your mouse after a few minutes of inactivity.
To be fair, this makes sense from a UX standpoint. You don't want messages to be marked as read if you have your window open but have walked away from the computer.