It used to be something like this:
You'd get 1 basically guaranteed box each month.
For every 7 metal lockboxes you'd increase the cap by 1 (this was permanent).
Having boxes in your inventory supposedly reduced the chances of you getting a box while you weren't capped.
Having silver keys supposedly did the opposite.
Older accounts that actively opened boxes were basically getting more of them per month which seemed like a fair system (you get rewarded for engaging with it).
There were probably other factors that I do not remember off the top of my head and someone much better informed on the topic will probably bring up (if not correct me).
Now the odds should be even and not impacted by anything.