Present perfect with 'in the last 10 days'

Both in the last week and in the past indicate a period of time leading up to now. So they're not referring to a past time and are compatible with the present perfect.

Specifically, the former means "in the last seven days leading up to now".

One the other hand, last week would refer to a past time and be incompatible with the present perfect.