UML sequence diagrams - is this a bug?

When modeling UML sequence diagrams, I’ve noticed that adding a new opeartion is not consistent.

Sometimes, the operation can be added to a class following these steps:

other times, these steps are required:

I wonder, is this a bug or is there an explanation why are there different steps needed to achieve same functionality?

Thank you!