Extreme value theory as a theoretical background for power law behavior