Your HP gains are based on the level being gained (the higher-end levels give you more HP), the amount of Vitality you have upon leveling up and a small random factor. In some cases some classes have higher or similar Vitality to other classes, so at lower levels you'll find the HP gap is much smaller. At higher levels with higher Vitality classes the difference becomes much more noticeable.