There are lots of reasons why a German Shepherd might stretch a lot. There are also lots of different ways that dogs will stretch their bodies.
As long as there is no reason to suspect an underlying health issue, the simplest explanation is often the right one – stretching simply feels good!