That 1 to 7 is actually 1 in 7. That means for every seven units of distance, the slope rises by one unit, such as 1 foot rise after 7 feet.
The percentage figure is that second part divided into 100. Thus a 1 in 7 means that if you divide 100 by the 7, the answer is roughly 14, therefore 14%.
Examples:
1 in 5 is 20%
1 in 8 is 12%
1in 10 is 10%
etc.
In other words, it's the percentage of rise in a distance, or 14/100ths in the first case, so just a way of expressing hills as a single figure. I often show both to suit others preferences.
.