5 years is 2 and a half 2-year terms in legislator time which gives time to determine whether they will extend or get rid of the 5-year moratorium in the 4th year. 3 years usually isn't enough time to decide in 2 years.
A years-long ban creates a chance to let it end without too much ruckus when the industry and/or voters change their minds, rather than having your opposition decry you for breaking your promise years later.