Mangle and Queue Tree

Question: Been watching youtube tutorials. May I know the reason behind marking upload and download and via file or byte size? I know it will be used as basis in queue tree for bandwidth management, just could not understand the reason behind it? Thanks