A jedi is forbidden to have attechment.
It isnt love or friendship they forbid.
It is that you put the live's of one person above the life of others.
Example: obi-one was friends with a bar-man anakin skywalker qui-gon-gin commander codi etc.
yet he always put the needs of the many first.
Anakin is the prime example why the jedi forbid attachment.
If anakin could let padme go then officaly the jedi coudnt forbid him anything(tho the jedi are still people and do make mistakes)