Yes this is odd - there is no such requirement when I hired a scooter in Portugal. It does point to e-scooters being considered a different category to ebikes and normal bikes.You do (though any entitlement will do, including I *think* provisional, you don't need a motorcycle category). The apps take and verify a photo of it before you can hire one to ride. It's not purely for identity - other ID e.g. passports aren't accepted.
I hope the requirement for a license is not extended to ebikes