It is not a written rule but a question of convention and I think of respect for the responsibility of the House to be in your seat at the time the question is called and to remain in your seat. It is a question of respect and convention. It does not invalidate the results of the vote.
In the House of Commons on March 13th, 1997. See this statement in context.