I'm posting a question because I was curious about something while studying linear algebra.
As we all know, $x = 1$ is a point in a one-dimensional coordinate system. I understand this part.
But why does $x = 1$ represent a line in two dimensions?
Is it simply defined that way?
If anyone knows anything about this, please help.
It may seem trivial, but I feel really uncomfortable and think about it every day.
Thank you.

Your problem probably comes from the fact that you don't really know what a two-dimensional coordinate system is and how a line in a two-dimensional coordinate system is mathematically defined.
It is linear algebra closely associated with elementary geometry.
First we define $$E=\mathbb R \times \mathbb R=\{(x,y): x\in \mathbb\ R,y\in \mathbb R \}$$ We multiply an element $\lambda$ of $\mathbb R$ by an element $(x,y)$ of E like this $$\lambda(x,y):=(\lambda x,\lambda y)$$ For example $$5(0,1)=(5\times 0,5\times 1)=(0,5)$$ We're adding two elements of $E$ like this $$(\color{green}1,0)+(\color{green}0,5):=(\color{green}{1+0},0+5)$$
You can think of an element of E as a point or a vector whichever makes the most sense to you.
Then, we define à line in $E$ by a part of $E$ of the form $$l=a+\mathbb R u$$ $\mathbb R u$ is called the direction of $l$.
Here, with $a=(1,0)$ and $u=(0,1)$, you obtain $$l=(1,0)+\mathbb R (0,1)=\{(x,y)\in \mathbb R \times \mathbb R: \exists \lambda \in \mathbb R, (x,y)=(1,0)+\lambda (0,1)\}$$ $$=\color{cyan}{\{(1,\lambda): \lambda \in \mathbb R\}}$$
Note that you asked yourself a good question to study linear algebra further.