He returned all his military patronages and so on to the Queen last yearin 2021, and is no longer seen on conventional royal duties. The Navy probably doesn't want him to be seen in their uniform, which is why he's in civilian dress in the recent pictures. At the vigil of the Queen's children in Westminster Hall, he wore Royal Navy ceremonial dress, by special request of the King.
Edward joined the Royal Marines as an officer cadet, but quit during initial training. He's alwaysnever seemed like a bit wetdetermined personality, and trying to prove he wasn'totherwise by undertaking the toughest initial training course in the UK military was not a clever move.