Different maternity packages in the same firm: ask the expert

I have just returned from maternity leave and found out that another person in my company got an enhanced maternity package whilst I received statutory. They received the bonus element of pay during maternity leave. I did not. Can a company have different rules for different people? Their leave was before mine, but there has been no change to policy at any time.