Depends on the position. Say that a hundred times over and over.
General chess principles/guidelines do not ever ask you to develop pieces to THIS square or THAT square. They are just principles that have exceptions. Never lazily rely on them, handwave them around as gospel or get confused when they are not followed in place of concrete analysis based on ... wait for it ... the POSITION!!!!
Any move/idea in chess including moving Knights to the rim of the board, not castling at all etc. are all candidates ... sometimes bad, sometimes even good, necessary or even the best moves (!!!) depending on the position.
Maybe my bishop wants to be on another diagonal? Maybe it is prophylactic (defensive idea) .. maybe Bd3/Bc4 are not ready to be "played" just yet ... but preparing for castling seems to be a more urgent idea. There's just too many IFs here to answer your question specifically.
Consider posting a few actual positions where Be7/Be2 seem to be "bad" to you ... this might allow the thread to prosper with a few good insights from stronger players.
I understand these moves are played to unpin knights from Bg5, but when there's not a pin, why do people still play that? It seems to be a really passive move that doesn't do anything to attack the center, and a move that develops the bishop to a really passive square, where it will have to move again. So why do people play Be2, instead of the more active Bd3 or Bc4? So can someome please explain to mewhat is the point of Be2 or Be7?