A serious answer is 2 is anything you want it to be: it's just a label just like "cat" is a label to describe a particular kind of biological creature.
You can though characterize 2 as having some kind of ranking with respect to the other "labels" where if you look at whole numbers, -1 is "less than" 2 but 3 is "greater than two".
You can also define 2 to be part of some set where you can do algebra and arithmetic on with respect to other numbers.
Typically what we do in mathematics is that we have all these techniques and frameworks that operate on variables of some sort where the numbers themselves have no real interpretation, but in a specific problem, we give the numbers an interpretation.
A 2 by itself is meaningless, but if the 2 represents a physical constant, the height of a particular person, or something else with context, then this context helps give the 2 some meaning. However if you just said the number 2 to someone, they would say WTF and walk off.
This is not just how mathematics works, this is how all language works and also this is how computers work as well.
The analogy with computers is that you have 1's and 0's that mean absolutely nothing if you saw them (just like if you saw a 2). But if you give that data to a particular computer program, then the program will make its own "interpretation" of that data and use it for some specific use.
A computer game will treat it as an image or maybe text, audio, video, 3D models, animations or something else. A spreadsheet will treat it as cell data, formulas, charts and graphics. A zip file will treat it as a directory with compressed data.
All of these (and more) programs treat the data and interpret it in a different way, but the data is still just 1's and 0's in memory for all instances and the number "2" or whatever other number you have is also treated by us in whatever way we interpret it just as if we were the computer program and the numbers are the 1's and 0's in memory.