Luke briefly says that those carrying out the execution divided Jesus' garments and cast lots for them. To modern readers clothing can seem incidental, but garments represented real material value and could be worth claiming.
The act also belongs to the stripping and humiliation of a condemned person who has lost control even of his possessions.