"In early 2021" is simply stating a fact. At that time, he was living there.
"By early 2021" means "no later than." It also carries the idea of a continuing process, with a point being reached no later than a particular time.
"We will be in Vermont in 2024."
"When will you be there?"
"We don't have firm plans, but we will be there by April 8th at the latest, because we hope to see the solar eclipse."
Your article--which I found by means of a web search--describes the sad story of a man whose problems became worse and worse until he became homeless. Later in the article says "When Anthony Saldana arrived in the city in 2018, he first rented his own place and then bunked with his sister and her partner, Phillip.... As the pandemic wore into 2021, Mr. Saldana left his sister’s house and started sleeping outside."
So it is perfectly correct to say that in early 2021 he was living in a tent. But it would also be correct to say "His problems grew worse and worse. In 2018, he was living in his own apartment. By [year?] he was living with his sister. But by 2021 he was living in a tent."