Encapsulation is an example of abstraction. The whole point of encapsulation is to abstract what's going on inside the function, to reduce all that complexity to a symbol (the reference or the name of the function), to turn the function into a black box.
In programming, the word "abstract" is a command. When a class inherits an abstract class (or an interface), you are being ordered to create an abstraction.